Repository URL to install this package:
|
Version:
1.2.7 ▾
|
@skava/graphql
/
jest.config.js
|
|---|
module.exports = {
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.(j|t)s?(x)',
'<rootDir>/src/**/?(*.)(spec|test).(j|t)s?(x)',
],
testEnvironment: 'node',
// testURL: 'http://localhost',
transform: {
'^.+\\.(js|jsx|mjs)$': './node_modules/babel-jest',
'^.+\\.tsx?$': './config/jest/typescriptTransform.js',
'^(?!.*\\.(js|jsx|mjs|css|json)$)': './config/jest/fileTransform.js',
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$'],
moduleNameMapper: {
'^react-native$': 'react-native-web',
},
moduleFileExtensions: [
'mjs',
'web.ts',
'ts',
'web.tsx',
'tsx',
'web.js',
'js',
'web.jsx',
'jsx',
'json',
'node',
],
globals: {
'ts-jest': {
tsConfigFile: './tsconfig.json',
},
},
}