strapi/jest.config.api.js
2024-04-02 11:19:43 +02:00

19 lines
454 B
JavaScript

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