Advertisement
flcs

jest.config.js Manguinho

Aug 23rd, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. yarn add -D typescript @types/ts-node
  2. yarn add -D jest @types/jest ts-jest
  3. yarn add -D
  4.  
  5. jest.config.js
  6.  
  7. module.exports = {
  8. roots: '<rootDir>/src',
  9. collectCoverageFrom: [
  10. '<rootDir>/src/**/*.{ts,tsc}',
  11. ],
  12. coverageDirectory: 'coverage',
  13. testEnvironment: 'node',
  14. transform: {
  15. '.+\\.ts$'? 'ts-jest'
  16. }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement