Revision babed4de83ebd1e31798bc5c08085b31bcd2a428 authored by Nicolas Thouvenin on 24 July 2024, 08:50:39 UTC, committed by Nicolas Thouvenin on 24 July 2024, 08:50:39 UTC
1 parent c4e36de
jest.config.js
module.exports = {
projects: [
{
displayName: 'frontend',
rootDir: `${__dirname}/src/app`,
setupFiles: [`${__dirname}/src/app/setupTest.js`],
testMatch: ['/**/*.spec.js'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
},
{
displayName: 'api',
rootDir: `${__dirname}/src/api`,
testEnvironment: 'node',
testPathIgnorePatterns: ['e2e'],
testMatch: ['/**/*.spec.js'],
},
{
displayName: 'common',
rootDir: `${__dirname}/src/common`,
testMatch: ['/**/*.spec.js'],
},
{
displayName: 'ezsLodex',
rootDir: `${__dirname}/packages/ezsLodex`,
modulePaths: ['<rootDir>/packages/ezsLodex/node_modules'],
moduleDirectories: [
`<rootDir>/packages/ezsLodex/node_modules`,
'node_modules',
],
moduleNameMapper: {},
testMatch: [
'**/test?(s)/**/*.[jt]s?(x)',
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[tj]s?(x)',
],
testEnvironment: 'node',
testPathIgnorePatterns: [
'/node_modules/',
'locals.js',
'testOne.js',
'testAll.js',
'/data/',
],
collectCoverage: true,
coveragePathIgnorePatterns: [
'/node_modules/',
'/test/',
'/lib/',
'/lodex/src/reducers/',
],
coverageReporters: ['lcov', 'text-summary'],
preset: '@shelf/jest-mongodb',
transformIgnorePatterns: [
'<rootDir>/node_modules/',
'/node_modules/(?!quick-lru)',
],
testTimeout: 8000,
},
],
};
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...