Skip to content

fix: add rs to global API#551

Merged
9aoy merged 1 commit intomainfrom
global-rs
Sep 10, 2025
Merged

fix: add rs to global API#551
9aoy merged 1 commit intomainfrom
global-rs

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Sep 10, 2025

Summary

add rs to global API.

- import { rs } from '@rstest/core';
import { sum } from './sum';

rs.mock('./sum', () => {
  return {
    sum: (a: number, b: number) => a + b + 100,
  };
});

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings September 10, 2025 03:04
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.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@netlify
Copy link
Copy Markdown

netlify bot commented Sep 10, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 1527d97
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68c0eab1fa79f90008908c21
😎 Deploy Preview https://deploy-preview-551--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 merged commit 40af3fc into main Sep 10, 2025
17 checks passed
@9aoy 9aoy deleted the global-rs branch September 10, 2025 03:15
@9aoy 9aoy mentioned this pull request Sep 10, 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.

2 participants