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
# on Stackblitz reproduction attached below
$ ./node_modules/.bin/vitest run issue.test.js
⎯⎯⎯ Unhandled Errors ⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯ Unhandled Errors ⎯⎯⎯
TypeError: class constructors must be invoked with 'new'
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Describe the bug
There is an error during test which is not correctly reported by vitest. As an example, it is a syntax error object thrown from sass npm.
Expected Output
Actual Output
Reproduction
by Stackblitz:
https://stackblitz.com/edit/node-hqdqwu?file=issue.test.js
by shell:
System Info
System: OS: Linux 5.0 undefined CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vitest: ^0.24.5 => 0.24.5
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: