/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict * @format */ 'use strict'; const baseConfig = require('../../../jest.config'); const path = require('path'); module.exports = { displayName: 'fantom', rootDir: path.resolve(__dirname, '../../..') /*:: as string */, roots: [ '/packages/react-native', '/packages/rn-tester', '/packages/polyfills', '/private/react-native-fantom', ], moduleFileExtensions: [ ...baseConfig.moduleFileExtensions, 'cpp', 'h', ] /*:: as ReadonlyArray */, // This allows running Meta-internal tests with the `-test.fb.js` suffix. testRegex: '/__tests__/.*-itest(\\.fb)?\\.js$', testPathIgnorePatterns: [ ...baseConfig.testPathIgnorePatterns, ...(process.env.FANTOM_INCLUDE_BENCHMARKS != null ? [] : ['benchmark-itest']), ] /*:: as ReadonlyArray */, transformIgnorePatterns: ['.*'], testRunner: '/private/react-native-fantom/runner/index.js', watchPathIgnorePatterns: ['/private/react-native-fantom/build/'], globalSetup: '/private/react-native-fantom/runner/global-setup/setup.js', globalTeardown: '/private/react-native-fantom/runner/global-setup/teardown.js', };