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 from c9448fe to 385a107 Compare December 12, 2025 17:49
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 385a107 to 433d5fd Compare December 12, 2025 17:51
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