Open 3rd-Eden opened 5 years ago
Adding jest
runner support would be awesome!
Could React Native Testing Library be used even w/o the jest
runner?
@shwanton I haven't tried it yet, so I can't really comment on it. Have you given it a go?
I have, but mostly for snapshot tests. However w/ RN there is still all the native mocks that need to happen so having it run in a real simulator sounds like a great solution.
This ticket tracks the creation of a
jest
based runner. In order to integrate a test runner our system makes the following assumptions:Currently
jest
executes the tests through theirjest
CLI. There is no programmatic API documented that we can use. This doesn't mean it's impossible to integrate. In the last few months, they started extracting bit's of the CLI into a dedicatedjest-core
package that would eventually become an API https://github.com/facebook/jest/pull/7696 this work is currently tracked in https://github.com/facebook/jest/issues/5048. When this work is completed it should become a lot easier to integratejest
as test runner.Acceptance Criteria
jest
as test runner.jest
configuration can be supplied using--jest.{key} {value}
CLI flags.examples
folder.