Add option to jest to run tests only locally, or on linux (#2609)

Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2609

Make it possible to mark some tests to run on non-CI, or unix only

Reviewed By: nikoant

Differential Revision: D29813506

fbshipit-source-id: 140f8a4eaed5af3282ab9d139b46a52818be0934
This commit is contained in:
Michel Weststrate
2021-07-21 05:42:00 -07:00
committed by Facebook GitHub Bot
parent 3f7e3c0441
commit a78b6124d7
7 changed files with 65 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ module.exports = {
'\\.(js|tsx?)$': '<rootDir>/scripts/jest-transform.js',
},
setupFiles: ['<rootDir>/scripts/jest-setup.js'],
setupFilesAfterEnv: ['<rootDir>/scripts/jest-setup-after.js'],
moduleNameMapper: {
'^flipper$': '<rootDir>/app/src',
'^flipper-plugin$': '<rootDir>/flipper-plugin/src',