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
This one was a puzzler for me. I hit the same error mentioned in this comment by @nathanvale:
TypeError: Cannot read property 'test' of undefined
at findPlugin (../../node_modules/pretty-format/build/index.js:272:20)
at Array.map (<anonymous>)
at Object.<anonymous> (../../../../.vscode/extensions/WallabyJs.wallaby-vscode-1.0.83/projects/cc362621f18cef70/instrumented/src/Form/__tests__/Form.js:25:35)
at Object.e.length.arguments.(anonymous function) (../../../../.vscode/extensions/WallabyJs.wallaby-vscode-1.0.83/projects/cc362621f18cef70/instrumented/config/jest/setupTests.js:28:1786)
I tried to replicate in a new project but couldn't. Then I tried simply copying and pasting the project to a new directory—and still couldn't! Then I found that if I deleted node_modules/ in a parent directory, the error went away and all tests passed. I isolated the source of the problem to one particular dependency, lint-staged@6.1.1, which in turn brings in pretty-format@21.2.1.
I've created a complete test repo. Steps to reproduce the bug in that repo:
yarn install
cd subproject && yarn install
Open in VS Code and run Wallaby
Note that the bug occurs whether you have the whole repo or just the subproject/ dir open in your editor.
Issue description or question
This one was a puzzler for me. I hit the same error mentioned in this comment by @nathanvale:
I tried to replicate in a new project but couldn't. Then I tried simply copying and pasting the project to a new directory—and still couldn't! Then I found that if I deleted
node_modules/
in a parent directory, the error went away and all tests passed. I isolated the source of the problem to one particular dependency,lint-staged@6.1.1
, which in turn brings inpretty-format@21.2.1
.I've created a complete test repo. Steps to reproduce the bug in that repo:
yarn install
cd subproject && yarn install
Note that the bug occurs whether you have the whole repo or just the
subproject/
dir open in your editor.Wallaby.js configuration file
Code editor or IDE name and version
Visual Studio Code v1.22.2
OS name and version
macOS 10.13.4
The text was updated successfully, but these errors were encountered: