perf(browser): improve the parallelisation logic #12057
ci.yml
on: pull_request
Diff: node-latest, ubuntu-latest
9s
Lint: node-latest, ubuntu-latest
2m 30s
Matrix: test-browser
Matrix: test
Annotations
39 errors
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:06:37
+ Duration 2.30s (transform 0ms, setup 333ms, collect 40ms, tests 23ms, environment 0ms, prepare 2.11s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
"cleanup1.test.ts": "pass",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
Browser: webkit, macos-latest
Process completed with exit code 1.
|
Build&Test: node-20, windows-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:07:51
+ Duration 1.31s (transform 0ms, setup 189ms, collect 32ms, tests 43ms, environment 0ms, prepare 1.23s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 520ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ mocked-do-mock-factory.test.ts > adds 569ms
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:08
+ Duration 7.34s (transform 0ms, setup 0ms, collect 6.39s, tests 1.51s, environment 0ms, prepare 9.20s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 588ms
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-do-mock-factory.test.ts > adds 477ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:16
+ Duration 7.02s (transform 0ms, setup 0ms, collect 6.64s, tests 1.48s, environment 0ms, prepare 8.49s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > running browser tests > snapshot inaccessible file debuggability:
test/browser/specs/runner.test.ts#L137
AssertionError: expected 'stderr | test/logs.test.ts > logging …' to contain 'Access denied to "/inaccesible/path".'
- Expected
+ Received
- Access denied to "/inaccesible/path".
+ stderr | test/logs.test.ts > logging to stdout
+ hello from console.trace
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/test/browser/test/logs.test.ts:8:16
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:533:13
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:532:19
+ runWithTimeout@http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:39:9
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:1048:19
+ stderr | test/logs.test.ts > logging to stderr
+ hello from console.error
+ stderr | test/logs.test.ts > logging to stderr
+ hello from console.warn
+ stderr | test/logs.test.ts > logging invalid time
+ Timer "invalid timeLog" does not exist
+ stderr | test/logs.test.ts > logging invalid time
+ Timer "invalid timeEnd" does not exist
+ stderr | test/logs.test.ts > logging the stack
+ error with a stack
+ ❯ test/logs.test.ts:59:16
+
+ stderr | test/logs.test.ts > logging the stack
+ trace with a stack
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/test/browser/test/logs.test.ts:50:16
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:533:13
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:532:19
+ runWithTimeout@http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:39:9
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:1048:19
+ stderr | test/dialog.test.ts > alert
+ Vitest encountered a `alert("test")` call that it cannot handle by default, so it returned `undefined`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `alert` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "alert")
+ alert("test")
+ expect(alert).toHaveBeenCalledWith("test")
+ ```
+ stderr | test/dialog.test.ts > prompt
+ Vitest encountered a `prompt("test")` call that it cannot handle by default, so it returned `null`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `prompt` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "prompt").mockReturnValue("your value")
+ prompt("test")
+ expect(prompt).toHaveBeenCalledWith("test")
+ ```
+ stderr | test/dialog.test.ts > confirm
+ Vitest encountered a `confirm("test")` call that it cannot handle by default, so it returned `false`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `confirm` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "confirm").mockReturnValue(true)
+ confirm("test")
+ expect(confirm).toHaveBeenCalledWith("test")
+ ```
+ WARNING: Some tests are still running when generating the JSON report.This is likely an internal bug in Vitest.Please report it to https://github.com/vitest-dev/vitest/issues
+ WARNING: Some tests are still running when generating the JSON report.This is likely an internal bug in Vitest.Please report it to https://github.com/vitest-dev/vitest/issues
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/dom.test.ts > dom related activity > renders div
+ TimeoutError: locator.screenshot: Timeout 53.30799999999999ms exceeded.
+ Call log:
+ - taking element screenshot
+ - waiting for fonts to load...
+ - fonts loaded
+ - attempting scroll into view action
+ - waiting for element to be stable
+
+
+ Failure screenshot:
+ - test/__screenshots__/dom.test.ts/dom-related-activity-renders-div-2.png
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
+
+ FAIL test/failing.test.ts > correctly fails and prints a diff
+ AssertionError: expected 1 to be 2 // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/failing.test.ts/correctly-fails-and-prints-a-diff-1.png
+
+ - Expected to be
+ + But got
+
+ - 2
+ + 1
+
+ ❯ test/failing.test.ts:5
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "run",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
Browser: webkit, windows-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:08:11
+ Duration 1.58s (transform 0ms, setup 168ms, collect 31ms, tests 10ms, environment 0ms, prepare 1.44s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L22
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain 'not-mocked-nested.test.ts'
- Expected
+ Received
- not-mocked-nested.test.ts
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 586ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-do-mock-factory.test.ts > adds
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+ ✓ not-mocked.test.ts > adds
+
+ Test Files 13 passed (13)
+ Tests 17 passed (17)
+ Start at 11:05:29
+ Duration 5.29s (transform 0ms, setup 0ms, collect 3.28s, tests 855ms, environment 0ms, prepare 4.07s)
+
+
❯ specs/mocking.test.ts:22:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L22
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain 'not-mocked-nested.test.ts'
- Expected
+ Received
- not-mocked-nested.test.ts
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 616ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-do-mock-factory.test.ts > adds
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+ ✓ not-mocked.test.ts > adds
+
+ Test Files 13 passed (13)
+ Tests 17 passed (17)
+ Start at 11:05:35
+ Duration 5.24s (transform 0ms, setup 0ms, collect 3.07s, tests 907ms, environment 0ms, prepare 4.16s)
+
+
❯ specs/mocking.test.ts:22:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
"cleanup1.test.ts": "pass",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
Browser: chromium, macos-latest
Process completed with exit code 1.
|
Build&Test: node-20, ubuntu-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:08:38
+ Duration 1.19s (transform 0ms, setup 194ms, collect 27ms, tests 16ms, environment 0ms, prepare 1.30s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > all mocked are valid 728ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-do-mock-factory.test.ts > adds 320ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:06:01
+ Duration 5.31s (transform 0ms, setup 0ms, collect 5.26s, tests 1.34s, environment 0ms, prepare 6.15s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 598ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ mocked-do-mock-factory.test.ts > adds 365ms
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+ ✓ automocked.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:06:06
+ Duration 4.60s (transform 0ms, setup 0ms, collect 4.60s, tests 1.10s, environment 0ms, prepare 5.92s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "run",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
Browser: chromium, windows-latest
Process completed with exit code 1.
|
Build&Test: node-18, ubuntu-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:08:45
+ Duration 2.08s (transform 0ms, setup 204ms, collect 17ms, tests 3ms, environment 0ms, prepare 1.07s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L22
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain 'not-mocked-nested.test.ts'
- Expected
+ Received
- not-mocked-nested.test.ts
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 445ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-do-mock-factory.test.ts > adds 310ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+ ✓ not-mocked.test.ts > adds
+
+ Test Files 13 passed (13)
+ Tests 17 passed (17)
+ Start at 11:05:56
+ Duration 8.51s (transform 0ms, setup 0ms, collect 3.80s, tests 844ms, environment 0ms, prepare 5.32s)
+
+
❯ specs/mocking.test.ts:22:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L22
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain 'not-mocked-nested.test.ts'
- Expected
+ Received
- not-mocked-nested.test.ts
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > all mocked are valid
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-do-mock-factory.test.ts > adds
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+ ✓ not-mocked.test.ts > adds
+
+ Test Files 13 passed (13)
+ Tests 17 passed (17)
+ Start at 11:06:05
+ Duration 5.97s (transform 0ms, setup 0ms, collect 2.99s, tests 552ms, environment 0ms, prepare 4.18s)
+
+
❯ specs/mocking.test.ts:22:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
TypeError: Cannot read properties of undefined (reading 'state')
❯ specs/runner.test.ts:145:77
❯ specs/runner.test.ts:145:50
|
Browser: firefox, macos-latest
Process completed with exit code 1.
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:08:59
+ Duration 4.67s (transform 0ms, setup 210ms, collect 30ms, tests 9ms, environment 0ms, prepare 1.35s)
+
+
❯ specs/locators.test.ts:11:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > all mocked are valid 909ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-do-mock-factory.test.ts > adds 849ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:44
+ Duration 11.84s (transform 0ms, setup 0ms, collect 9.44s, tests 2.08s, environment 0ms, prepare 9.44s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > all mocked are valid 825ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ mocked-nested.test.ts > actual
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-do-mock-factory.test.ts > adds 842ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:57
+ Duration 11.15s (transform 0ms, setup 0ms, collect 8.78s, tests 1.85s, environment 0ms, prepare 9.36s)
+
+
❯ specs/mocking.test.ts:20:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
specs/runner.test.ts > user-event:
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "run",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
Browser: firefox, windows-latest
Process completed with exit code 1.
|
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
|