Files
flipper/desktop/jest.config.js
Michel Weststrate 2383dc85f8 Initialized flipper-plugin library
Summary: Set up an initial library which can (should) be used by plugins in the future.

Reviewed By: jknoxville

Differential Revision: D22019554

fbshipit-source-id: 502b14b34b2c9c117cea377ab6ebbf150e6faee9
2020-07-01 09:12:35 -07:00

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