You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to version 1.2.*, the extension seems to be caching outdated code, leading to incorrect test results. To obtain accurate test output, it is necessary to refresh the tests.
Reproduction
Output
As shown in the attached video, you may need to press Ctrl+;+R to refresh your code and ensure that the latest changes are reflected in the test results."The Output:[INFO 10:03:13 AM] Running 1 file(s) with name pattern: ^\s?CorrectDiagnosticArea component unit tests[10:03:13 AM] The runner is starting because tests C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx were started due to a file change[10:03:13 AM] Enqueuing "CorrectDiagnosticArea component unit tests
[10:03:13 AM] Enqueuing "should render component in case of state is pending close[10:03:17 AM] No task result for "should render component incase of state is pending close", assuming the test just started running[10:03:17 AM] Marking "should render component in case of state is pending close" as passed[10:03:17 AM] Ending test run src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:21 AM] Running 1 file(s) with name pattern: ^\s?CorrectDiagnosticArea component unit tests[10:03:21 AM] The runner is starting because tests C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx were started due to a file change[10:03:21 AM] Enqueuing "CorrectDiagnosticArea component unit tests
[10:03:21 AM] Enqueuing "should render component in case of state is pending close[10:03:25 AM] No task result for "should render component in case of state is pending close", assuming the test just started running[10:03:25 AM] Marking "should render component in case of state is pending close" as passed[10:03:25 AM] Ending test run src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:27 AM] [API] Vitest process 23148 closed successfully[INFO 10:03:27 AM] [API] Running Vitest v2.0.5 (darwin-web/vitest.config.ts) with Node.js: C:\Program Files\nodejs\node.EXE[INFO 10:03:28 AM] [API] Vitest v2.0.5 (darwin-web/vitest.config.ts) process 17372 created[INFO 10:03:28 AM] [API] Collecting tests: src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[10:03:28 AM] Not starting the runner because tests are being collected[10:03:33 AM] There is no test run for "correctDiagnosticArea.test.tsx"[10:03:33 AM] No test run to finish for C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:34 AM] Running 1 file(s) with name pattern: ^\s?CorrectDiagnosticArea component unit tests[10:03:34 AM] The runner is starting because tests C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx were started due to a file change[10:03:34 AM] Enqueuing "CorrectDiagnosticArea component unit tests
[10:03:34 AM] Enqueuing "should render component in case of state is pending close[10:03:39 AM] No task result for "should render component in case of state is pending close", assuming the test just started running[10:03:39 AM] No errors found for "correctDiagnosticArea.test.tsx"[10:03:39 AM] No errors found for "CorrectDiagnosticArea component unit tests"[10:03:39 AM] Could not find a valid stack for should render component in case of state is pending close [ {"method": "assertNotNullOrUndefined","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/matches.js","line": 12,"column": 11 }, {"method": "matches","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/matches.js","line": 35,"column": 3 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 37,"column": 82 }, {"method": "queryAllByAttribute","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 37,"column": 67 }, {"method": "queryAllByTestId","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/queries/test-id.js","line": 13,"column": 44 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 74,"column": 17 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 52,"column": 17 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 95,"column": 19 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx","line": 33,"column": 19 }][10:03:39 AM] Marking "should render component in case of state is pending close" as failed with 1 errors[10:03:39 AM] No errors found for "correctDiagnosticArea.test.tsx"[10:03:39 AM] Ending test run src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:45 AM] Running 1 file(s) with name pattern: ^\s?CorrectDiagnosticArea component unit tests[10:03:45 AM] The runner is starting because tests C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx were started due to a file change[10:03:45 AM] Enqueuing "CorrectDiagnosticArea component unit tests
[10:03:45 AM] Enqueuing "should render component in case of state is pending close[10:03:49 AM] No task result for "should render component in case of state is pending close", assuming the test just started running[10:03:49 AM] No errors found for "correctDiagnosticArea.test.tsx"[10:03:49 AM] No errors found for "CorrectDiagnosticArea component unit tests"[10:03:49 AM] Could not find a valid stack for should render component in case of state is pending close [ {"method": "assertNotNullOrUndefined","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/matches.js","line": 12,"column": 11 }, {"method": "matches","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/matches.js","line": 35,"column": 3 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 37,"column": 82 }, {"method": "queryAllByAttribute","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 37,"column": 67 }, {"method": "queryAllByTestId","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/queries/test-id.js","line": 13,"column": 44 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 74,"column": 17 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 52,"column": 17 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js","line": 95,"column": 19 }, {"method": "","file": "C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx","line": 33,"column": 19 }][10:03:49 AM] Marking "should render component in case of state is pending close" as failed with 1 errors[10:03:49 AM] No errors found for "correctDiagnosticArea.test.tsx"[10:03:49 AM] Ending test run src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:52 AM] [API] Vitest process 17372 closed successfully[INFO 10:03:52 AM] [API] Running Vitest v2.0.5 (darwin-web/vitest.config.ts) with Node.js: C:\Program Files\nodejs\node.EXE[INFO 10:03:52 AM] [API] Vitest v2.0.5 (darwin-web/vitest.config.ts) process 20768 created[INFO 10:03:52 AM] [API] Collecting tests: src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[10:03:52 AM] Not starting the runner because tests are being collected[10:03:58 AM] There is no test run for "correctDiagnosticArea.test.tsx"[10:03:58 AM] No test run to finish for C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx[INFO 10:03:59 AM] Running 1 file(s) with name pattern: ^\s?CorrectDiagnosticArea component unit tests[10:03:59 AM] The runner is starting because tests C:/Users/LQ4161/Desktop/Dev/darwin-web/src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx were started due to a file change[10:03:59 AM] Enqueuing "CorrectDiagnosticArea component unit tests
[10:03:59 AM] Enqueuing "should render component in case of state is pending close[10:04:04 AM] No task result for "should render component in case of state is pending close", assuming the test just started running[10:04:04 AM] Marking "should render component in case of state is pending close" as passed[10:04:04 AM] Ending test run src/tests/app/modules/report-status/correctDiagnosticArea.test.tsx
@AriPerkkio You are right! After I disabled TypeScript › Tsserver › Experimental: Use Vs Code Watcher, it works without refresh.
However, now it looks like it stuck after changes and won`t run again. Only debug option runs the tests
(It started run again after at least 15 seconds of wait)
Not sure if this is the same issue but since version 1.2.3 (worked in 1.2.2) it won't refresh change for files loaded dynamically. This is using the latest version of vitest
Describe the bug
After updating to version 1.2.*, the extension seems to be caching outdated code, leading to incorrect test results. To obtain accurate test output, it is necessary to refresh the tests.
Reproduction
Output
Version
1.2.7
VSCode Data:
Version: 1.93.0 (user setup)
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045
Validations
The text was updated successfully, but these errors were encountered: