Skip to content

Conversation

@raju-opti
Copy link
Contributor

Issues

  • FSSDK-12089

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relocates the /public directory to /vitest/public to better organize test infrastructure files alongside other Vitest-related configuration. The main addition is a console capture utility that intercepts browser console logs and errors during tests and forwards them to the test server.

  • Adds a new console-capture.js script that wraps browser console methods and forwards output to the test server
  • Updates the Vitest browser configuration to serve files from the new vitest/public directory

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
vitest/public/console-capture.js New browser-side script that captures console logs, errors, warnings, info messages, uncaught errors, and unhandled promise rejections, forwarding them to the test server via fetch
vitest.browser.config.mts Updates publicDir configuration to point to the new vitest/public location

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raju-opti raju-opti merged commit 82b3a70 into master Dec 23, 2025
20 of 23 checks passed
@raju-opti raju-opti deleted the raju/vitest-public branch December 23, 2025 13:21
@coveralls
Copy link

Coverage Status

coverage: 77.745%. remained the same
when pulling 96df181 on raju/vitest-public
into 96f3aa5 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants