link-stack/packages/jest-config/jest-preset.js

22 lines
546 B
JavaScript
Raw Permalink Normal View History

module.exports = {
testEnvironment: 'node',
roots: ["<rootDir>", "<rootDir>/src"],
passWithNoTests: true,
testMatch: ["<rootDir>/src/**/*.spec.{ts,tsx}"],
silent: false,
verbose: true,
collectCoverage: true,
coverageDirectory: "coverage",
testPathIgnorePatterns: [
"/node_modules"
],
/*
The modulePathIgnorePatterns accepts these sorts of paths:
<rootDir>/src
<rootDir>/src/file.ts
...and ignores anything else under <rootDir>
*/
modulePathIgnorePatterns: ["^<rootDir>/(?!(?:src/)|(?:src$))"]
};