Skip to content

Commit

Permalink
update config to ignore files without test in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Nov 28, 2024
1 parent 67fa0ae commit ba4b932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -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__/**/*.(spec|test).[jt]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"],
Expand Down

0 comments on commit ba4b932

Please sign in to comment.