/** * 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, 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', };