Skip to content

feat: support rs.setConfig#386

Merged
9aoy merged 2 commits intomainfrom
set-config
Jul 16, 2025
Merged

feat: support rs.setConfig#386
9aoy merged 2 commits intomainfrom
set-config

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jul 15, 2025

Summary

rs.setConfig is used to dynamically updates the runtime configuration for the current test file. Useful for temporarily overriding test settings such as timeouts, concurrency, or mock behavior.

rs.resetConfig is used to resets the runtime configuration that was changed using rs.setConfig back to the default values.

Example:

rs.setConfig({ testTimeout: 1000, retry: 2 });
// ... run some code with the new config
rs.resetConfig(); // Restore to default config

Related Links

Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 15, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 26c8677
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6875c8fd2742390008707a82
😎 Deploy Preview https://deploy-preview-386--rstest-dev.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 fi3ework July 15, 2025 03:26
@9aoy 9aoy merged commit 5b61c45 into main Jul 16, 2025
14 checks passed
@9aoy 9aoy deleted the set-config branch July 16, 2025 06:00
@9aoy 9aoy mentioned this pull request Jul 16, 2025
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