diff --git a/core/jest.config.js b/core/jest.config.js index d58b0b510..435ea78ea 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -19,8 +19,15 @@ export default { __dirname: path.dirname(fileURLToPath(import.meta.url)), __filename: path.resolve(fileURLToPath(import.meta.url)), }, - + globalSetup: "/jest.global-setup.ts", setupFilesAfterEnv: ["/jest.setup-after-env.ts"], - maxWorkers: 1 // equivalent to CLI --runInBand + maxWorkers: 1, // equivalent to CLI --runInBand + // collectCoverage: true, + collectCoverageFrom: [ + "src/**/*.{js,ts}", // Adjust this pattern to match files you want coverage for + "!**/node_modules/**", // Exclude node_modules + "!**/vendor/**", // Exclude any vendor directories if necessary + ], + // other Jest configuration... };