Advertisement
flcs

jest.config.js Fernando básico

Aug 7th, 2022 (edited)
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * For a detailed explanation regarding each configuration property, visit:
  3.  * https://jestjs.io/docs/configuration
  4.  */
  5.  
  6. module.exports = {
  7.  
  8.   clearMocks: true,
  9.   preset: 'ts-jest',
  10.   collectCoverage: true,
  11.   coverageDirectory: "coverage",
  12.   coverageProvider: "v8",
  13.   // testEnvironment: "jest-environment-node",
  14.   testEnvironment: "jsdom",
  15.   testMatch: [
  16.     "**/__tests__/**/*.[jt]s?(x)",
  17.     "**/?(*.)+(spec|test).[tj]s?(x)"
  18.   ],
  19.   testPathIgnorePatterns: [
  20.     "/node_modules/"
  21.   ],
  22.   watchman: true,
  23. };
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement