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
28 lines
883 B
JavaScript
28 lines
883 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
module.exports = {
|
|
transform: {
|
|
'^.*__tests__(/|\\\\).*\\.tsx?$': 'ts-jest',
|
|
'\\.(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',
|
|
'^flipper-(pkg|pkg-lib|doctor|test-utils)$': '<rootDir>/$1/src',
|
|
},
|
|
clearMocks: true,
|
|
coverageReporters: ['json-summary', 'lcov', 'html'],
|
|
testMatch: ['**/**.(node|spec).(js|jsx|ts|tsx)'],
|
|
testEnvironment: 'jest-environment-jsdom-sixteen',
|
|
resolver: '<rootDir>/jest.resolver.js',
|
|
};
|