/** * 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?)$': '/scripts/jest-transform.js', }, setupFiles: ['/scripts/jest-setup.js'], moduleNameMapper: { '^flipper$': '/app/src', '^flipper-doctor$': '/doctor/src', '^flipper-pkg$': '/pkg/src', '^flipper-pkg-lib$': '/pkg-lib/src', '^flipper-plugin$': '/flipper-plugin/src', }, clearMocks: true, coverageReporters: ['json-summary', 'lcov', 'html'], testMatch: ['**/**.node.(js|jsx|ts|tsx)'], testEnvironment: 'jest-environment-jsdom-sixteen', };