Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Dec 12, 2025

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.

@clydin clydin force-pushed the unit-test/vitest-browser-sourcemaps branch 10 times, most recently from ea4bb86 to 1dd470d Compare December 16, 2025 22:54
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.
@clydin clydin force-pushed the unit-test/vitest-browser-sourcemaps branch from 1dd470d to f9d3099 Compare December 16, 2025 23:32
Sign up for free to 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