rogeliog / jest-runner-mocha

A Mocha runner for Jest
70 stars 12 forks source link

Support for jest setupFilesAfterEnv and clearMocks options #24

Open jehy opened 4 years ago

jehy commented 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.