CI #720
ci.yml
on: workflow_dispatch
Diff: node-latest, ubuntu-latest
5s
Lint: node-latest, ubuntu-latest
2m 29s
Matrix: test-browser
Matrix: test
Annotations
25 errors
Build&Test: node-20, macos-latest
Process completed with exit code 1.
|
specs/runner.test.ts > running browser tests > logs have stack traces in safari:
test/browser/specs/runner.test.ts#L110
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ test/basic.test.ts (4 tests) 8ms
+ ✓ test/dialog.test.ts (3 tests) 4ms
+ ✓ test/polyfill-lib.test.ts (1 test) 1ms
+ ✓ src/actions.ts (1 test) 1ms
+ ❯ test/failing.test.ts (2 tests | 2 failed) 141ms
+ × correctly fails and prints a diff 100ms
+ → expected 1 to be 2 // Object.is equality
+ × correctly print error in another file 40ms
+ → error
+ ✓ test/another.test.ts (2 tests) 2ms
+ ✓ test/server-headers.test.ts (1 test) 6ms
+ ❯ test/failing.snaphot.test.ts (1 test | 1 failed) 101ms
+ × file snapshot 101ms
+ → Access denied to "/inaccesible/path". See Vite config documentation for "server.fs": https://vitejs.dev/config/server-options.html#server-fs-strict.
+ ✓ test/injected.test.ts (1 test) 2ms
+ ✓ test/userEvent.test.ts (54 tests) 3316ms
+ ✓ userEvent.click > correctly clicks a button 338ms
+ ✓ userEvent.click > clicks with x/y coords 485ms
+ ✓ userEvent.type > types into an input 434ms
+ ✓ test/dom.test.ts (6 tests) 264ms
+ ↓ test/cdp.test.ts (3 tests | 3 skipped)
+ ✓ test/commands.test.ts (2 tests) 20ms
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.log
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.info
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.debug
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dir",
+ }
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dirxml",
+ }
+
+
+ stdout | test/logs.test.ts > logging DOM element
+ dom <div />
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 2
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 3
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 2
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 3
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 116 ms
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 0 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 117 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 0 ms
+
+
+ stdout | test/logs.test.ts > logging the stack
log with a stack
+
+
❯ test/logs.test.ts:58:14
+
+
+
+ ✓ test/logs.test.ts (9 tests) 18ms
+ ✓ test/utils.test.ts (4 tests) 15ms
+ ✓ test/viewport.test.ts (2 tests | 1 skipped) 1ms
+ ✓ test/cjs-lib.test.ts (3 tests) 4ms
+ ✓ test/timers.test.ts (1 test) 3ms
+ ✓ test/snapshot.test.ts (3 tests) 9ms
+
+ Test Files 2 failed | 16 passed | 1 skipped (19)
+ Tests 3 failed | 96 passed | 4 skipped (103)
+ Start at 15:41:00
+ Duration 8.50s (transform 0ms, setup 0ms, collect 157ms, tests 3.92s, environment 0ms, prepare 2.64s)
+
+ JSON report written to /Users/runner/work/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:110:20
|
Browser: webkit, macos-latest
Process completed with exit code 1.
|
specs/runner.test.ts > running browser tests > logs have stack traces in non-safari:
test/browser/specs/runner.test.ts#L96
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ test/basic.test.ts (4 tests) 6ms
+ ✓ test/dialog.test.ts (3 tests) 3ms
+ ✓ test/polyfill-lib.test.ts (1 test) 1ms
+ ✓ src/actions.ts (1 test) 3ms
+ ❯ test/failing.test.ts (2 tests | 2 failed) 532ms
+ × correctly fails and prints a diff 419ms
+ → expected 1 to be 2 // Object.is equality
+ × correctly print error in another file 112ms
+ → error
+ ✓ test/another.test.ts (2 tests) 3ms
+ ✓ test/server-headers.test.ts (1 test) 8ms
+ ❯ test/failing.snaphot.test.ts (1 test | 1 failed) 259ms
+ × file snapshot 259ms
+ → Access denied to "/inaccesible/path". See Vite config documentation for "server.fs": https://vitejs.dev/config/server-options.html#server-fs-strict.
+ ✓ test/injected.test.ts (1 test) 1ms
+ ✓ test/userEvent.test.ts (54 tests) 3534ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover works correctly 339ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover correctly pass options 310ms
+ ✓ userEvent.hover, userEvent.unhover > hover works with svg 392ms
+ ✓ userEvent.dragAndDrop > drag and drop works 374ms
+ ✓ test/dom.test.ts (6 tests) 1100ms
+ ✓ dom related activity > svg screenshot 340ms
+ ✓ test/cdp.test.ts (3 tests) 182ms
+ ✓ test/commands.test.ts (2 tests) 6ms
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.log
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.info
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.debug
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dir",
+ }
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dirxml",
+ }
+
+
+ stdout | test/logs.test.ts > logging DOM element
+ dom <div />
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 2
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 3
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 2
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 3
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 147 ms
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 0.40000000002328306 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 150 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 0.7000000000116415 ms
+
+
+ stdout | test/logs.test.ts > logging the stack
log with a stack
+
+
❯ test/logs.test.ts:58:10
+
+
+
+ ✓ test/logs.test.ts (9 tests) 30ms
+ ✓ test/utils.test.ts (4 tests) 6ms
+ ✓ test/viewport.test.ts (2 tests | 1 skipped) 4ms
+ ✓ test/cjs-lib.test.ts (3 tests) 4ms
+ ✓ test/timers.test.ts (1 test) 2ms
+ ✓ test/snapshot.test.ts (3 tests) 7ms
+
+ Test Files 2 failed | 17 passed (19)
+ Tests 3 failed | 99 passed | 1 skipped (103)
+ Start at 15:41:12
+ Duration 8.25s (transform 0ms, setup 0ms, collect 141ms, tests 5.69s, environment 0ms, prepare 2.16s)
+
+ JSON report written to /Users/runner/work/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:96:20
|
Browser: chromium, macos-latest
Process completed with exit code 1.
|
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
|
Build&Test: node-20, ubuntu-latest
Process completed with exit code 1.
|
Build&Test: node-18, ubuntu-latest
Process completed with exit code 1.
|
specs/runner.test.ts > running browser tests > logs have stack traces in safari:
test/browser/specs/runner.test.ts#L110
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ test/cjs-lib.test.ts (3 tests) 77ms
+ ✓ test/timers.test.ts (1 test) 25ms
+ ❯ test/failing.test.ts (2 tests | 2 failed) 733ms
+ × correctly fails and prints a diff 411ms
+ → expected 1 to be 2 // Object.is equality
+ × correctly print error in another file 320ms
+ → error
+ ✓ test/snapshot.test.ts (3 tests) 96ms
+ ✓ test/another.test.ts (2 tests) 44ms
+ ✓ test/basic.test.ts (4 tests) 77ms
+ ✓ test/server-headers.test.ts (1 test) 31ms
+ ✓ test/dialog.test.ts (3 tests) 70ms
+ ✓ test/polyfill-lib.test.ts (1 test) 21ms
+ ❯ test/failing.snaphot.test.ts (1 test | 1 failed) 312ms
+ × file snapshot 311ms
+ → Access denied to "/inaccesible/path". See Vite config documentation for "server.fs": https://vitejs.dev/config/server-options.html#server-fs-strict.
+ ✓ src/actions.ts (1 test) 21ms
+ ✓ test/injected.test.ts (1 test) 21ms
+ ✓ test/userEvent.test.ts (54 tests) 9249ms
+ ✓ userEvent.click > correctly clicks a button 751ms
+ ✓ userEvent.tripleClick > correctly clicks a button 310ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover works correctly 557ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover correctly pass options 524ms
+ ✓ userEvent.hover, userEvent.unhover > hover works with shadow root 523ms
+ ✓ userEvent.hover, userEvent.unhover > hover works with svg 530ms
+ ✓ userEvent.type > types into an input 322ms
+ ✓ userEvent.type > types into an input 555ms
+ ✓ userEvent.dragAndDrop > drag and drop works 488ms
+ ✓ test/dom.test.ts (6 tests) 1473ms
+ ✓ dom related activity > renders div 633ms
+ ↓ test/cdp.test.ts (3 tests | 3 skipped)
+ ✓ test/commands.test.ts (2 tests) 172ms
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.log
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.info
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.debug
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dir",
+ }
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dirxml",
+ }
+
+
+ stdout | test/logs.test.ts > logging DOM element
+ dom <div />
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 2
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 3
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 2
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 3
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 342 ms
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 0 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 363 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 1 ms
+
+
+ stdout | test/logs.test.ts > logging the stack
log with a stack
+
+
❯ test/logs.test.ts:58:14
+
+
+
+ ✓ test/logs.test.ts (9 tests) 194ms
+ ✓ test/utils.test.ts (4 tests) 163ms
+ ✓ test/viewport.test.ts (2 tests | 1 skipped) 21ms
+
+ Test Files 2 failed | 16 passed | 1 skipped (19)
+ Tests 3 failed | 96 passed | 4 skipped (103)
+ Start at 15:42:14
+ Duration 15.43s (transform 0ms, setup 0ms, collect 220ms, tests 12.80s, environment 0ms, prepare 5.43s)
+
+ JSON report written to D:/a/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:110:20
|
Browser: webkit, windows-latest
Process completed with exit code 1.
|
specs/benchmark.test.ts > benchmark:
test/browser/specs/benchmark.test.ts#L6
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
+ at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)
❯ specs/benchmark.test.ts:6:25
|
specs/filter.test.ts > filter:
test/browser/specs/filter.test.ts#L10
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
+ at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)
❯ specs/filter.test.ts:10:18
|
specs/fix-4686.test.ts > tests run in presence of config.base:
test/browser/specs/fix-4686.test.ts#L14
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
+ at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)
❯ specs/fix-4686.test.ts:14:18
|
specs/locators.test.ts > locators work correctly:
test/browser/specs/locators.test.ts#L10
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
+ at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)
❯ specs/locators.test.ts:10:18
|
specs/mocking.test.ts > mocking works correctly - isolated true:
test/browser/specs/mocking.test.ts#L15
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
❯ specs/mocking.test.ts:15:25
|
specs/mocking.test.ts > mocking works correctly - isolated false:
test/browser/specs/mocking.test.ts#L15
AssertionError: expected 'Error: listen EACCES: permission deni…' to be '' // Object.is equality
- Expected
+ Received
+ Error: listen EACCES: permission denied ::1:63315
+ at Server.setupListenHandle [as _listen2] (node:net:1882:21)
+ at listenInCluster (node:net:1961:12)
+ at GetAddrInfoReqWrap.doListen (node:net:2135:7)
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
❯ specs/mocking.test.ts:15:25
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L41
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
stderr: Error: listen EACCES: permission denied ::1:63315
at Server.setupListenHandle [as _listen2] (node:net:1882:21)
at listenInCluster (node:net:1961:12)
at GetAddrInfoReqWrap.doListen (node:net:2135:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
❯ specs/mocking.test.ts:41:16
|
specs/mocking.test.ts > mocking dependency correctly invalidates it on rerun:
test/browser/specs/mocking.test.ts#L37
TypeError: Cannot read properties of undefined (reading 'close')
❯ specs/mocking.test.ts:37:15
|
specs/runner.test.ts > running browser tests:
test/browser/specs/runner.test.ts#L19
Error: ENOENT: no such file or directory, open 'D:\a\vitest\vitest\test\browser\browser.json'
❯ specs/runner.test.ts:19:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'D:\a\vitest\vitest\test\browser\browser.json' }
|
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:33
|
specs/runner.test.ts > running browser tests > logs have stack traces in non-safari:
test/browser/specs/runner.test.ts#L96
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ test/cjs-lib.test.ts (3 tests) 9ms
+ ✓ test/timers.test.ts (1 test) 6ms
+ ✓ test/snapshot.test.ts (3 tests) 12ms
+ ❯ test/failing.test.ts (2 tests | 2 failed) 475ms
+ × correctly fails and prints a diff 281ms
+ → expected 1 to be 2 // Object.is equality
+ × correctly print error in another file 192ms
+ → error
+ ✓ test/basic.test.ts (4 tests) 8ms
+ ✓ test/another.test.ts (2 tests) 4ms
+ ✓ test/dialog.test.ts (3 tests) 30ms
+ ✓ test/server-headers.test.ts (1 test) 32ms
+ ✓ test/polyfill-lib.test.ts (1 test) 2ms
+ ✓ src/actions.ts (1 test) 3ms
+ ❯ test/failing.snaphot.test.ts (1 test | 1 failed) 145ms
+ × file snapshot 145ms
+ → Access denied to "/inaccesible/path". See Vite config documentation for "server.fs": https://vitejs.dev/config/server-options.html#server-fs-strict.
+ ✓ test/injected.test.ts (1 test) 2ms
+ ✓ test/userEvent.test.ts (54 tests) 3087ms
+ ✓ test/dom.test.ts (6 tests) 383ms
+ ✓ test/cdp.test.ts (3 tests) 94ms
+ ✓ test/commands.test.ts (2 tests) 22ms
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.log
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.info
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.debug
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dir",
+ }
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dirxml",
+ }
+
+
+ stdout | test/logs.test.ts > logging DOM element
+ dom <div />
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 2
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 3
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 2
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 3
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 150.09999999997672 ms
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 0.6000000000931323 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 153.70000000006985 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 0.2999999999301508 ms
+
+
+ stdout | test/logs.test.ts > logging the stack
log with a stack
+
+
❯ test/logs.test.ts:58:10
+
+
+
+ ✓ test/logs.test.ts (9 tests) 26ms
+ ✓ test/utils.test.ts (4 tests) 10ms
+ ✓ test/viewport.test.ts (2 tests | 1 skipped) 1ms
+
+ Test Files 2 failed | 17 passed (19)
+ Tests 3 failed | 99 passed | 1 skipped (103)
+ Start at 15:43:17
+ Duration 7.01s (transform 0ms, setup 0ms, collect 424ms, tests 4.35s, environment 0ms, prepare 4.80s)
+
+ JSON report written to D:/a/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:96:20
|
Browser: chromium, windows-latest
Process completed with exit code 1.
|
specs/runner.test.ts > running browser tests > logs have stack traces in non-safari:
test/browser/specs/runner.test.ts#L96
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to match 'log with a stack\n ❯ test/logs.test.t…'
- Expected
+ Received
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ test/basic.test.ts (4 tests) 15ms
+ ✓ test/dialog.test.ts (3 tests) 17ms
+ ✓ test/polyfill-lib.test.ts (1 test) 5ms
+ ✓ src/actions.ts (1 test) 4ms
+ ❯ test/failing.test.ts (2 tests | 2 failed) 307ms
+ × correctly fails and prints a diff 169ms
+ → expected 1 to be 2 // Object.is equality
+ × correctly print error in another file 138ms
+ → error
+ ✓ test/another.test.ts (2 tests) 5ms
+ ✓ test/server-headers.test.ts (1 test) 7ms
+ ❯ test/failing.snaphot.test.ts (1 test | 1 failed) 141ms
+ × file snapshot 140ms
+ → Access denied to "/inaccesible/path". See Vite config documentation for "server.fs": https://vitejs.dev/config/server-options.html#server-fs-strict.
+ ✓ test/injected.test.ts (1 test) 2ms
+ ✓ test/userEvent.test.ts (54 tests) 6030ms
+ ✓ userEvent.click > correctly clicks a button 485ms
+ ✓ userEvent.click > correctly doesn't click on a disabled button 340ms
+ ✓ userEvent.click > clicks with x/y coords 387ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover works correctly 415ms
+ ✓ userEvent.hover, userEvent.unhover > hover, unhover correctly pass options 449ms
+ ✓ test/dom.test.ts (6 tests) 295ms
+ ↓ test/cdp.test.ts (3 tests | 3 skipped)
+ ✓ test/commands.test.ts (2 tests) 13ms
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.log
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.info
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ hello from console.debug
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dir",
+ }
+
+
+ stdout | test/logs.test.ts > logging to stdout
+ {
+ "hello": "from dirxml",
+ }
+
+
+ stdout | test/logs.test.ts > logging DOM element
+ dom <div />
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 2
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 3
+
+
+ stdout | test/logs.test.ts > logging default counter
+ default: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 2
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 3
+
+
+ stdout | test/logs.test.ts > logging custom counter
+ count: 1
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 475 ms
+
+
+ stdout | test/logs.test.ts > logging default time
+ default: 1 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 483 ms
+
+
+ stdout | test/logs.test.ts > logging custom time
+ time: 0 ms
+
+
+ stdout | test/logs.test.ts > logging the stack
log with a stack
+
+
❯ test/logs.test.ts:58:10
+
+
+
+ ✓ test/logs.test.ts (9 tests) 151ms
+ ✓ test/utils.test.ts (4 tests) 21ms
+ ✓ test/viewport.test.ts (2 tests | 1 skipped) 3ms
+ ✓ test/cjs-lib.test.ts (3 tests) 14ms
+ ✓ test/timers.test.ts (1 test) 6ms
+ ✓ test/snapshot.test.ts (3 tests) 16ms
+
+ Test Files 2 failed | 16 passed | 1 skipped (19)
+ Tests 3 failed | 96 passed | 4 skipped (103)
+ Start at 15:42:55
+ Duration 16.53s (transform 0ms, setup 0ms, collect 338ms, tests 7.05s, environment 0ms, prepare 6.76s)
+
+ JSON report written to /Users/runner/work/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:96:20
|
Browser: firefox, macos-latest
Process completed with exit code 1.
|
Build&Test: node-20, windows-latest
Process completed with exit code 1.
|