-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Version
System:
OS: macOS 15.6
CPU: (14) arm64 Apple M4 Pro
Memory: 92.91 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 142.0.7444.177
Firefox: 141.0
Safari: 18.6
npmPackages:
@rstest/core: latest => 0.7.1Details
As far as I can tell, the rstest implementation of mocking is actually loading the "source" file before applying the mock. I don't see that this is happening with jest
In our case we have endless side effects in our "source" files and can't justify refactoring right now
Reproduce link
https://github.com/jhage-snapsheet/rstest-side-effect-mock
Reproduce Steps
npm run testorDEBUG=rstest npm run test- observe "touches" variables are incremented instead of undefined
npm run test:jest- observe "touches" variables are not incremented
Metadata
Metadata
Assignees
Labels
No labels