Skip to content
New issue

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

v1.6.7 can't run tests when running Vitest in Browser mode with Playwright provider #531

Closed
4 tasks done
dlims opened this issue Nov 15, 2024 · 0 comments
Closed
4 tasks done

Comments

@dlims
Copy link

dlims commented Nov 15, 2024

Describe the bug

Running a browser mode vitest test, with playwright provider, works from npm script, but it doesn't work when launching the test from the extension. Downgrading to v1.6.6 works as expected again.

Reproduction

Not sure how to provide an example to reproduce the problem.

https://github.com/vitest-dev/vitest/tree/main/examples/workspace

Output

⎯⎯⎯⎯⎯⎯ 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 Error ⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'openPage')
 ❯ node_modules/@vitest/browser/dist/index.js:2604:31
 ❯ executeTests node_modules/@vitest/browser/dist/index.js:2583:12
 ❯ runWorkspaceTests node_modules/@vitest/browser/dist/index.js:2625:13
 ❯ Object.runTests node_modules/@vitest/browser/dist/index.js:2645:26
 ❯ node_modules/vitest/dist/chunks/resolveConfig.DPmbhVlP.js:7695:37
 ❯ process.processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ executeTests node_modules/vitest/dist/chunks/resolveConfig.DPmbhVlP.js:7678:5
 ❯ node_modules/vitest/dist/chunks/cli-api.CKrRYkw8.js:10800:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Version

1.6.7

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant