Skip to content

test: use rstest es module outputs#1385

Merged
Timeless0911 merged 1 commit intomainfrom
test/output-module
Dec 9, 2025
Merged

test: use rstest es module outputs#1385
Timeless0911 merged 1 commit intomainfrom
test/output-module

Conversation

@9aoy
Copy link
Copy Markdown
Contributor

@9aoy 9aoy commented Dec 9, 2025

Summary

Outputs and executes test code in ES module format by default.

https://rstest.rs/config/build/output#outputmodule

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 9, 2025 08:45
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 PR configures rstest to output and execute test code in ES module format by default, updating the @rstest/core dependency from version 0.7.0 to 0.7.1.

  • Adds output.module: true configuration to rstest.config.ts
  • Updates @rstest/core dependency to version 0.7.1 across all package.json files
  • Fixes compatibility issues in test code and mocks for ES module format

Reviewed changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated no comments.

Show a summary per file
File Description
rstest.config.ts Adds ES module output configuration
tests/integration/shims/index.test.ts Fixes undefined exports reference by initializing it as empty object
packages/core/mocks/fs/promises.js Updates memfs import to use default import for ES module compatibility
package.json Updates @rstest/core to 0.7.1 in root package.json
pnpm-lock.yaml Reflects dependency version updates
packages/create-rslib/template-*/package.json Updates @rstest/core to 0.7.1 in all project templates
packages/create-rslib/fragments/tools/rstest-*/package.json Updates @rstest/core to 0.7.1 in all tool fragments
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 9, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit f9a6184
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/6937e1bd68d0b70008df08b7
😎 Deploy Preview https://deploy-preview-1385--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@9aoy 9aoy requested a review from Timeless0911 December 9, 2025 08:53
@Timeless0911 Timeless0911 merged commit dd31c16 into main Dec 9, 2025
22 checks passed
@Timeless0911 Timeless0911 deleted the test/output-module branch December 9, 2025 08:59
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.

3 participants