Skip to content

Conversation

@clydin
Copy link
Member

This change ensures that source-map-support is injected into the setup files when running Vitest tests in a browser environment. This allows stack traces from failing tests to correctly map back to the original source files, significantly improving debugging capabilities.

A regression test has been added to tests/vitest/browser-sourcemaps.ts to verify that a failing test correctly identifies the source file in its stack trace.

@clydinclydinforce-pushed the unit-test/vitest-browser-sourcemaps branch 8 times, most recently from 3a60be4 to b0900ebCompareDecember 16, 2025 20:14
This change ensures that `source-map-support` is injected into the setup files when running Vitest tests in a browser environment. This allows stack traces from failing tests to correctly map back to the original source files, significantly improving debugging capabilities. A regression test has been added to `tests/vitest/browser-sourcemaps.ts` to verify that a failing test correctly identifies the source file in its stack trace.
@clydinclydinforce-pushed the unit-test/vitest-browser-sourcemaps branch from b0900eb to ea4bb86CompareDecember 16, 2025 21:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@clydin