You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running autoconfiguration without JEST_CIRCUS variable :
[Info] Started Wallaby.js Core v1.0.1076
[Info] console.log: Jest: FAIL javascript/demo/factorial.unit.ts
[Info] console.log: Jest: ● Test suite failed to run
[Info] Qualified path resolution failed - none of the candidates can be found on the disk.
[Info] Source path: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.js
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.json
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.node
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.jsx
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es6
[Info] Rejected candidate: /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es7
[Info] Require stack:
[Info] - /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js
[Info] - /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/index.js
[Info] - /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/@jest-core-npm-26.6.3-9bb6c92d6b-e0d35e40fc.zip/node_modules/@jest/core/build/TestScheduler.js
[Info] - /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/@jest-core-npm-26.6.3-9bb6c92d6b-e0d35e40fc.zip/node_modules/@jest/core/build/jest.js
[Info] - /Users/florent.legall/code/wallaby-try-pnp/.yarn/cache/jest-npm-26.6.1-3c5e3cbae1-52c44268c7.zip/node_modules/jest/build/jest.js
[Info] - /Users/florent.legall/code/wallaby-try-pnp/wallaby.js
[Info] at internalTools_makeError (.pnp.js:13843:34)
[Info] at resolveUnqualified (.pnp.js:14882:13)
[Info] at resolveRequest (.pnp.js:14906:14)
[Info] at Object.resolveRequest (.pnp.js:14978:26)
[Info] at Function.external_module_.Module._resolveFilename (.pnp.js:14076:34)
[Info] at Function.external_module_.Module._load (.pnp.js:13941:48)
[Info] at Module.n.require (../../.vscode/extensions/wallabyjs.wallaby-vscode-1.0.292/wallabyc7d5f8/server.js:29:6939)
[Info] at Module.n.require (../../.vscode/extensions/wallabyjs.wallaby-vscode-1.0.292/wallabyc7d5f8/server.js:29:6939)
[Error] Runtime error: Qualified path resolution failed - none of the candidates can be found on the disk.
[Error] Source path: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.js
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.json
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.node
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.jsx
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es6
[Error] Rejected candidate: ./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-jasmine2/build/index.js.es7
[Error] Require stack:
[Error] - ./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js
[Error] - ./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/index.js
[Error] - ./.yarn/cache/@jest-core-npm-26.6.3-9bb6c92d6b-e0d35e40fc.zip/node_modules/@jest/core/build/TestScheduler.js
[Error] - ./.yarn/cache/@jest-core-npm-26.6.3-9bb6c92d6b-e0d35e40fc.zip/node_modules/@jest/core/build/jest.js
[Error] - ./.yarn/cache/jest-npm-26.6.1-3c5e3cbae1-52c44268c7.zip/node_modules/jest/build/jest.js
[Error] - ./wallaby.js
[Error] at internalTools_makeError (./.pnp.js:13843:34)
[Error] at resolveUnqualified (./.pnp.js:14882:13)
[Error] at resolveRequest (./.pnp.js:14906:14)
[Error] at Object.resolveRequest (./.pnp.js:14978:26)
[Error] at Function.external_module_.Module._resolveFilename (./.pnp.js:14076:34)
[Error] at Function.external_module_.Module._load (./.pnp.js:13941:48)
[Error] at Module.require (internal/modules/cjs/loader.js:1044:19)
[Error] at require (internal/modules/cjs/helpers.js:77:18)
[Error] at runTestInternal (./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js:228:9)
[Error] at runTest (./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js:472:40)
[Error] at ./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/index.js:154:45
When running vscode with JEST_CIRCUS=1 variable (eg JEST_CIRCUS=1 code .)
I have the following error :
[Info] Started Wallaby.js Core v1.0.1076
[Info] console.log: Jest: FAIL javascript/demo/factorial.unit.ts
[Info] console.log: Jest: ● Test suite failed to run
[Info] ReferenceError: jasmine is not defined
[Info] at Object.<anonymous> (../../.vscode/extensions/wallabyjs.wallaby-vscode-1.0.292/wallabyc7d5f8/runners/node/jest@24.8.0/jasmineInitializer.js:14:29)
[Error] Runtime error: ReferenceError: jasmine is not defined
[Error] at Runtime._execModule (./.yarn/cache/jest-runtime-npm-26.6.3-bf7a869586-5ef4ceaefb.zip/node_modules/jest-runtime/build/index.js:1299:24)
[Error] at Runtime._loadModule (./.yarn/cache/jest-runtime-npm-26.6.3-bf7a869586-5ef4ceaefb.zip/node_modules/jest-runtime/build/index.js:898:12)
[Error] at Runtime.requireModule (./.yarn/cache/jest-runtime-npm-26.6.3-bf7a869586-5ef4ceaefb.zip/node_modules/jest-runtime/build/index.js:746:10)
[Error] at jestAdapter (./.yarn/cache/jest-circus-npm-26.6.1-296de3b635-6fb1d590a2.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:93:15)
[Error] at runTestInternal (./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js:380:16)
[Error] at runTest (./.yarn/cache/jest-runner-npm-26.6.3-4a4a361df8-7cac133ccf.zip/node_modules/jest-runner/build/runTest.js:472:34)
Thanks for reporting your problem, and for the sample repo - it was a big help!
Just like jest-circus, Wallaby itself is a test runner (also true for jest-jasmine2). In Wallaby's case, we use some internals of jest-jasmine2 so it is still required as a dev dependency of your project when using Wallaby.
Wallaby would have nicely reported this to you if not for a bug it had when using jest-circus with yarn2 workspaces; this is fixed in the latest version of Wallaby core, v1.0.1077.
To fix your issue, please upgrade to the latest version of Wallaby core and add jest-jasmine2 as a dev dependency:
Issue description or question
Hi !
I'm facing an issue when running WallabyJS auto configuration
Wallaby doesn't launch, when looking at the Wallaby.js Console: there are some resolution errors (see below).
I've tried running VS Code with
JEST_CIRCUS=1
environment variable, I'm having a bit different errors.Is this setup supported ?
Regards,
Reproduction repository
You can reproduce it by cloning https://github.com/flegall/wallaby-try-pnp
Logs
When running autoconfiguration without JEST_CIRCUS variable :
When running vscode with JEST_CIRCUS=1 variable (eg
JEST_CIRCUS=1 code .
)I have the following error :
Wallaby diagnostics report
The text was updated successfully, but these errors were encountered: