strapi/jest.config.cli.js
2024-04-03 11:56:00 +02:00

19 lines
454 B
JavaScript

'use strict';
module.exports = {
displayName: 'CLI tests',
testMatch: ['**/?(*.)+(spec|test).cli.(js|ts)'],
testEnvironment: 'node',
setupFilesAfterEnv: ['<rootDir>/../../../../tests/setup/jest-cli.setup.js'],
coveragePathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/node_modules/',
'<rootDir>/out-tsc/',
'<rootDir>/test/',
],
transform: {
'^.+\\.ts$': ['@swc/jest'],
},
modulePathIgnorePatterns: ['.cache'],
};