mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +03:00
d05d7ec1d1
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
export default {
|
|
setupFilesAfterEnv: ['./src/setupTests.ts'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.(ts|js|tsx|jsx)$': '@swc/jest',
|
|
},
|
|
moduleNameMapper: {
|
|
'~/(.+)': '<rootDir>/src/$1',
|
|
'@/(.+)': '<rootDir>/src/modules/$1',
|
|
'@testing/(.+)': '<rootDir>/src/testing/$1',
|
|
'\\.(jpg|jpeg|png|gif|webp|svg|svg\\?react)$':
|
|
'<rootDir>/__mocks__/imageMock.js',
|
|
},
|
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 10,
|
|
lines: 10,
|
|
functions: 7,
|
|
},
|
|
},
|
|
collectCoverage: true,
|
|
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
|
|
coveragePathIgnorePatterns: [
|
|
'states/.+State.ts$',
|
|
'states/selectors/*',
|
|
'contexts/.+Context.ts',
|
|
'testing/*',
|
|
'tests/*',
|
|
'config/*',
|
|
'graphql/queries/*',
|
|
'graphql/mutations/*',
|
|
'graphql/fragments/*',
|
|
'types/*',
|
|
'constants/*',
|
|
'generated-metadata/*',
|
|
'generated/*',
|
|
'__stories__/*',
|
|
'display/icon/index.ts',
|
|
],
|
|
// coverageDirectory: '<rootDir>/coverage/',
|
|
};
|