Skip to content

test: replace onDevCompileDone with onAfterDevCompile#1393

Merged
Timeless0911 merged 2 commits intomainfrom
test/not-open
Dec 12, 2025
Merged

test: replace onDevCompileDone with onAfterDevCompile#1393
Timeless0911 merged 2 commits intomainfrom
test/not-open

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

Summary

  • replace onDevCompileDone with onAfterDevCompile
  • do not open url when running tests

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 12, 2025 07:42
Copy link
Copy Markdown
Contributor

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 pull request modernizes the test configuration files by migrating from the deprecated onDevCompileDone API to the newer onAfterDevCompile API, and disables automatic browser opening during test runs to prevent interference with automated testing.

  • Replaces all occurrences of api.onDevCompileDone() with api.onAfterDevCompile() across test configurations
  • Sets server.open to false to prevent browser windows from opening during test execution
  • Updates test expectations to match the new configuration value

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/integration/server/mf-dev/rslib.config.ts Migrates plugin hook from onDevCompileDone to onAfterDevCompile and disables browser opening
tests/integration/server/index.test.ts Updates test assertion to expect open: false instead of open: true
tests/integration/plugins/mf-dev/rslib.config.ts Migrates two plugin hooks from onDevCompileDone to onAfterDevCompile

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

@Timeless0911 Timeless0911 merged commit cef5a6a into main Dec 12, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the test/not-open branch December 12, 2025 08:10
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.

2 participants