Closed deni5n closed 1 year ago
jest works fine
jest works fine
Do you run Jest with --experimental-vm-modules
flag? If so, you need to add the config setting for Wallaby too.
I did this, but these tests run in an infinite loop. with jest everything works fine:
Test Suites: 5 passed, 5 total
Tests: 147 passed, 147 total
Snapshots: 0 total
Time: 1.531 s, estimated 2 s
What can be wrong?
console Wallaby
[Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute.
[Error] The last recorded console.log: (node:22243) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Error] (Use `node --trace-warnings ...` to show where the warning was created)
when added
[Info] Started Wallaby.js Core v1.0.1346
[Info] console.error: (node:27293) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Info] at emitExperimentalWarning (node:internal/util:224:11)
[Info] at new Module (node:internal/vm/module:81:5)
[Info] at new SourceTextModule (node:internal/vm/module:297:5)
[Info] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Info] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Info] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Info] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Info] at Module.load (node:internal/modules/cjs/loader:981:32)
[Info] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Info] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Info] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Info] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Info] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Info] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
[Info] console.error: (node:27287) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Info] at emitExperimentalWarning (node:internal/util:224:11)
[Info] at new Module (node:internal/vm/module:81:5)
[Info] at new SourceTextModule (node:internal/vm/module:297:5)
[Info] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Info] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Info] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Info] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Info] at Module.load (node:internal/modules/cjs/loader:981:32)
[Info] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Info] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Info] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Info] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Info] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Info] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
[Info] console.error: (node:27306) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Info] at emitExperimentalWarning (node:internal/util:224:11)
[Info] at new Module (node:internal/vm/module:81:5)
[Info] at new SourceTextModule (node:internal/vm/module:297:5)
[Info] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Info] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Info] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Info] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Info] at Module.load (node:internal/modules/cjs/loader:981:32)
[Info] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Info] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Info] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Info] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Info] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Info] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
[Info] console.error: (node:27300) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Info] at emitExperimentalWarning (node:internal/util:224:11)
[Info] at new Module (node:internal/vm/module:81:5)
[Info] at new SourceTextModule (node:internal/vm/module:297:5)
[Info] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Info] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Info] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Info] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Info] at Module.load (node:internal/modules/cjs/loader:981:32)
[Info] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Info] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Info] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Info] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Info] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Info] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
[Info] console.error: (node:27294) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Info] at emitExperimentalWarning (node:internal/util:224:11)
[Info] at new Module (node:internal/vm/module:81:5)
[Info] at new SourceTextModule (node:internal/vm/module:297:5)
[Info] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Info] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Info] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Info] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Info] at Module.load (node:internal/modules/cjs/loader:981:32)
[Info] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Info] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Info] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Info] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Info] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Info] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
[Info] console.log: Jest: PASS tests/helpers.spec.js
[Info] console.log: Jest: PASS tests/kvp.spec.js
[Info] Execution progress: 50 tests
[Info] console.log: Jest: PASS tests/simple.spec.js
[Info] Execution progress: 100 tests
[Info] console.log: Jest: PASS tests/base.spec.js
[Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute.
[Error] The last recorded console.log: (node:27293) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
[Error] at emitExperimentalWarning (node:internal/util:224:11)
[Error] at new Module (node:internal/vm/module:81:5)
[Error] at new SourceTextModule (node:internal/vm/module:297:5)
[Error] at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
[Error] at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
[Error] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[Error] at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
[Error] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[Error] at Module.load (node:internal/modules/cjs/loader:981:32)
[Error] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[Error] at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
[Error] at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
[Error] at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
[Error] at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
[Error] at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
my package.json contains
{
...
"wallaby": {
"env": {
"params": {
"runner": "--experimental-vm-modules --trace-warnings"
}
}
}
}
--experimental-vm-modules
flag? [Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute.
error message, does Wallaby finish executing your tests and some results are displayed, or no results apart from the mentioned error are displayed?Closing this issue as we haven't heard back.
Issue description or question
SyntaxError: Cannot use import statement outside a module
Wallaby diagnostics report