[Bug]: Unexpected token ':'
dstampher opened this issue · comments
Version
^29.1.0
Steps to reproduce
https://github.com/dstampher/node-ts-utilities
yarn test
Expected behavior
Tests should run.
Actual behavior
C:\Users\david\source\repos\vpn-proxy>yarn test
yarn run v1.22.19
$ node --experimental-vm-modules node_modules/jest/bin/jest.js
FAIL tests/vpnProxyManager.tests.ts
● Test suite failed to run
SyntaxError: Unexpected token ':'
at Runtime.loadEsmModule (node_modules/jest-runtime/build/index.js:510:20)
ReferenceError: You are trying to import
a file after the Jest environment has been torn down. From tests/vpnProxyManager.tests.ts.
ReferenceError: You are trying to import
a file after the Jest environment has been torn down. From tests/vpnProxyManager.tests.ts.
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.771 s
Ran all test suites.
(node:11708) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
(Use node --trace-warnings ...
to show where the warning was created)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Debug log
N/A
Additional context
No response
Environment
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 19.4.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.2.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
jest: ^29.5.0 => 29.5.0
C:\Users\david\source\repos\vpn-proxy>