-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Describe the bug
When using browser mode, the browser window pops up with a blank page regardless of the test status.
I guess it's because the iframe's src assignment was removed in this PR?
Reproduction
It's just a basic setup so I'm just pasting the files here:
{
"name": "vitest-ui-bug",
"version": "1.0.0",
"type": "module",
"scripts": {
"test": "vitest"
},
"devDependencies": {
"vitest": "^1.3.1"
}
}import { test, expect } from 'vitest';
test('foo', () => {
expect(window.innerWidth).toBeGreaterThan(0);
});npx vitest --browser=chromeThe test passed normally.
System Info
System:
OS: Windows 10 10.0.19045
CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
Memory: 3.48 GB / 15.80 GB
Binaries:
Node: 18.19.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\scoop\apps\yarn\current\bin\yarn.CMD
npm: 10.2.5 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (121.0.2277.128)
Internet Explorer: 11.0.19041.3636
npmPackages:
vitest: ^1.3.1 => 1.3.1Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
