41 строка
1.1 KiB
JavaScript
41 строка
1.1 KiB
JavaScript
module.exports = {
|
|
preset: '@rnx-kit/jest-preset',
|
|
verbose: true,
|
|
snapshotResolver: './jest-snapshot-resolver.js',
|
|
transform: {
|
|
'^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$':
|
|
'<rootDir>/jest/assetFileTransformer.js',
|
|
},
|
|
transformIgnorePatterns: ['jest-runner'],
|
|
setupFiles: ['./jest/setup.js'],
|
|
fakeTimers: {
|
|
enableGlobally: true,
|
|
legacyFakeTimers: false,
|
|
},
|
|
snapshotFormat: {
|
|
escapeString: true,
|
|
printBasicPrototype: true,
|
|
},
|
|
testRegex: '/__tests__/.*-test\\.js$',
|
|
testPathIgnorePatterns: [
|
|
// Only run the version of the tests that are part of the merged source output
|
|
'src-win',
|
|
'src/private/webapis/performance/__tests__/NativePerformanceMock-test.js' // Temporarily disabled until test is fixed. #<Insert Issue Num>
|
|
],
|
|
unmockedModulePathPatterns: [
|
|
'react',
|
|
'Libraries/Renderer',
|
|
'promise',
|
|
'source-map',
|
|
'fastpath',
|
|
'denodeify',
|
|
],
|
|
testEnvironment: 'node',
|
|
collectCoverageFrom: ['Libraries/**/*.js'],
|
|
coveragePathIgnorePatterns: [
|
|
'/__tests__/',
|
|
'/vendor/',
|
|
'<rootDir>/Libraries/react-native/',
|
|
],
|
|
};
|