Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yarn add -D typescript @types/ts-node
- yarn add -D jest @types/jest ts-jest
- yarn add -D
- jest.config.js
- module.exports = {
- roots: '<rootDir>/src',
- collectCoverageFrom: [
- '<rootDir>/src/**/*.{ts,tsc}',
- ],
- coverageDirectory: 'coverage',
- testEnvironment: 'node',
- transform: {
- '.+\\.ts$'? 'ts-jest'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement