Open jehy opened 4 years ago
jest has many cool options, and two most useful are setupFilesAfterEnv and clearMocks.
As far as I noticed, jest-runner-mocha does not implement those, and should be done inside runner like in native jest runner (jasmine2):
https://github.com/facebook/jest/blob/master/packages/jest-jasmine2/src/index.ts
There are also other cool features like useFakeTimers and resetModules.
it would be great to implement those.
jest has many cool options, and two most useful are setupFilesAfterEnv and clearMocks.
As far as I noticed, jest-runner-mocha does not implement those, and should be done inside runner like in native jest runner (jasmine2):
https://github.com/facebook/jest/blob/master/packages/jest-jasmine2/src/index.ts
There are also other cool features like useFakeTimers and resetModules.
it would be great to implement those.