We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an awaited promise gets rejected with anything other than an object, the test runner exits watch mode with the following error:
await
TypeError: can't access property "stacks", e is undefined
(error message varies slightly depending on what the promise rejection returns)
https://stackblitz.com/edit/vitest-dev-vitest-vvm3wa?file=test%2Fbasic.test.ts&initialPath=__vitest__ I've included three lines in the test in here. Only the third line behaves as expected.
Please let me know if I'm being unclear!
System: OS: macOS 12.6 CPU: (10) arm64 Apple M1 Pro Memory: 577.14 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.10.0 - ~/.n/bin/node Yarn: 1.22.15 - ~/.local/bin/yarn npm: 8.19.2 - ~/.n/bin/npm Browsers: Firefox Developer Edition: 105.0 Safari: 16.0 npmPackages: vitest: 0.23.4 => 0.23.4
npm
The text was updated successfully, but these errors were encountered:
bd67701
No branches or pull requests
Describe the bug
If an
await
ed promise gets rejected with anything other than an object, the test runner exits watch mode with the following error:(error message varies slightly depending on what the promise rejection returns)
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-vvm3wa?file=test%2Fbasic.test.ts&initialPath=__vitest__
I've included three lines in the test in here. Only the third line behaves as expected.
Please let me know if I'm being unclear!
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: