diff --git a/jest.config.js b/jest.config.js index faf5bd1..1f50cf6 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,10 @@ /** @type {import('jest').Config} */ const config = { preset: "@shelf/jest-mongodb", + // The glob patterns Jest uses to detect test files + testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[tj]s?(x)"], + // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped + testPathIgnorePatterns: ["/node_modules/"], verbose: true, collectCoverage: true, coverageReporters: ["clover", "json", "lcov", "html", "text"],