fix(vitest): don't fail if the working directory starts with a lowercase drive letter #11894
Annotations
10 errors
Test Browser (playwright):
test/browser/specs/benchmark.test.ts#L6
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\nTyp…' to be '' // Object.is equality
- Expected
+ Received
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+
❯ specs/benchmark.test.ts:6:25
|
Test Browser (playwright):
test/browser/specs/filter.test.ts#L10
AssertionError: expected 'filter: test/basic.test.ts\ninclude:…' to be '' // Object.is equality
- Expected
+ Received
+ filter: test/basic.test.ts
+ include: test/**.test.{ts,js,tsx}
+ exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
+
+ No test files found, exiting with code 1
+
❯ specs/filter.test.ts:10:18
|
Test Browser (playwright):
test/browser/specs/fix-4686.test.ts#L14
AssertionError: expected 'filter: test/basic.test.ts\ninclude:…' to be '' // Object.is equality
- Expected
+ Received
+ filter: test/basic.test.ts
+ include: test/**.test.{ts,js,tsx}
+ exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
+
+ No test files found, exiting with code 1
+
❯ specs/fix-4686.test.ts:14:18
|
Test Browser (playwright):
test/browser/specs/locators.test.ts#L10
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\nTyp…' to be '' // Object.is equality
- Expected
+ Received
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+
❯ specs/locators.test.ts:10:18
|
Test Browser (playwright):
test/browser/specs/mocking.test.ts#L15
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\nTyp…' to be '' // Object.is equality
- Expected
+ Received
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+
❯ specs/mocking.test.ts:15:25
|
Test Browser (playwright):
test/browser/specs/mocking.test.ts#L15
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\nTyp…' to be '' // Object.is equality
- Expected
+ Received
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+
❯ specs/mocking.test.ts:15:25
|
Test Browser (playwright):
test/browser/specs/mocking.test.ts#L41
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
DEV v2.1.3 D:/a/vitest/vitest/test/browser/fixtures/mocking-watch
Browser runner started by playwright at http://localhost:63315/
⎯⎯⎯⎯⎯⎯ 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.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Test Files no tests
Tests no tests
Errors 1 error
Start at 14:02:01
Duration 906ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms)
FAIL Tests failed. Watching for file changes...
press h to show help, press q to quit
stderr:
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: __vitest_browser_runner__.runTests is not a function
❯ specs/mocking.test.ts:41:16
|
Test Browser (playwright):
test/browser/specs/runner.test.ts#L34
AssertionError: expected [] to have a length of 19 but got +0
- Expected
+ Received
- 19
+ 0
❯ specs/runner.test.ts:34:43
|
Test Browser (playwright):
test/browser/specs/runner.test.ts#L44
AssertionError: expected '\n RUN v2.1.3 D:/a/vitest/vitest/tes…' to contain 'src/actions.ts'
- Expected
+ Received
- src/actions.ts
+
+ RUN v2.1.3 D:/a/vitest/vitest/test/browser
+ Browser runner started by playwright at http://localhost:63315/
+
+
+ ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
+
+ Vitest caught 3 unhandled errors during the test run.
+ This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ Test Files no tests
+ Tests no tests
+ Errors 3 errors
+ Start at 13:59:53
+ Duration 2.81s (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms)
+
+ JSON report written to D:/a/vitest/vitest/test/browser/browser.json
+
❯ specs/runner.test.ts:44:20
|
Test Browser (playwright):
test/browser/specs/runner.test.ts#L51
AssertionError: expected '\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\nTyp…' to contain 'expected 1 to be 2'
- Expected
+ Received
- expected 1 to be 2
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
+ TypeError: __vitest_browser_runner__.runTests is not a function
+
+
❯ specs/runner.test.ts:51:20
|
Loading