mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
module.exports = {
|
|
coverageDirectory: '<rootDir>/coverage',
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,ts,tsx}',
|
|
'!src/registerServiceWorker.js',
|
|
'!src/index.ts',
|
|
'!src/reducers/index.ts',
|
|
'!src/**/provideServices.ts',
|
|
'!src/container/*.ts',
|
|
],
|
|
resolver: 'jest-pnp-resolver',
|
|
setupFiles: [
|
|
'react-app-polyfill/jsdom',
|
|
'<rootDir>/config/setupEnzyme.js',
|
|
],
|
|
testMatch: [ '<rootDir>/test/**/*.test.{js,jsx,ts,tsx}' ],
|
|
testEnvironment: 'jsdom',
|
|
testURL: 'http://localhost',
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx|mjs)$': '<rootDir>/node_modules/babel-jest',
|
|
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
|
|
'^(?!.*\\.(ts|tsx|js|jsx|mjs|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$',
|
|
'^.+\\.module\\.(css|sass|scss)$',
|
|
],
|
|
moduleNameMapper: {
|
|
'^react-native$': 'react-native-web',
|
|
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: [
|
|
'web.js',
|
|
'js',
|
|
'web.ts',
|
|
'ts',
|
|
'web.tsx',
|
|
'tsx',
|
|
'json',
|
|
'web.jsx',
|
|
'jsx',
|
|
'node',
|
|
],
|
|
};
|