Open patrick99e99 opened 4 hours ago
29.7.0
3 tests passing
Nothing works.. mocking the module for ./my-class.js
./my-class.js
foo
MyClass
someMethod
mocked-value
await import('./my-class');
No response
System: OS: macOS 12.4 CPU: (10) arm64 Apple M1 Max Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm npmPackages: jest: ^29.7.0 => 29.7.0
I also added the sound player example tests from https://jestjs.io/docs/es6-class-mocks
They also do not work...
Version
29.7.0
Steps to reproduce
Expected behavior
3 tests passing
Actual behavior
Nothing works.. mocking the module for
./my-class.js
foo
is added, it is not there when importedMyClass
is overwritten, expecting a mocked out instance withsomeMethod
returningmocked-value
but instead it is the original implementation.await import('./my-class');
.. same result.Additional context
No response
Environment