15.304.1 • Published 1 year ago

@angular-ru/jest-utils v15.304.1

Weekly downloads
613
License
MIT
Repository
github
Last release
1 year ago

Automatic create Jest config for Angular projects

It's very convenient to testing our applications with Angular and Jest now.

Quick start

$ npm install @angular-ru/jest-utils -D

Create jest.config.js

const { createTsJestConfig } = require('@angular-ru/jest-utils');

module.exports = createTsJestConfig({
    tsConfig: './tsconfig.json',
    jestConfig: {
        rootDir: '.',
        displayName: 'My Angular App',
        testMatch: ['<rootDir>/tests/**/*.spec.ts'],
        collectCoverageFrom: ['<rootDir>/src/app/**/*.ts']
    }
});
$ jest --config jest.config.js --coverage

FAQ

  • I have jest-haste-map: Haste module naming collision
module.exports = createTsJestConfig({
    // ...
    jestConfig: {
        // ...
        modulePathIgnorePatterns: ['<rootDir>/dist/']
    }
});
  • How can I add setupFilesAfterEnv files?
module.exports = createTsJestConfig({
    // ...
    jestConfig: {
        // ...
        setupFilesAfterEnv: ['<rootDir>/setup-jest.ts']
    }
});
15.303.0

1 year ago

15.304.1

1 year ago

15.301.3

1 year ago

15.301.0

1 year ago

15.267.0

1 year ago

15.253.0

1 year ago

15.231.1

1 year ago

15.236.0

1 year ago

15.237.0

1 year ago

15.224.0

1 year ago

15.220.0

1 year ago

15.209.0

1 year ago

15.199.0

1 year ago

15.171.0

2 years ago

15.159.0

2 years ago

15.158.0

2 years ago

15.138.0

2 years ago

15.138.1

2 years ago

15.132.0

2 years ago

15.132.1

2 years ago

15.131.0

2 years ago

15.129.0

2 years ago

15.123.0

2 years ago

15.120.0

2 years ago

15.121.0

2 years ago

15.119.0

2 years ago

15.113.0

2 years ago

15.114.0

2 years ago

15.111.0

2 years ago

15.94.0

2 years ago

15.90.0

2 years ago

15.81.0

2 years ago

15.70.0

2 years ago

15.41.0

2 years ago

15.36.0

2 years ago

15.34.0

2 years ago

15.27.1

2 years ago

15.23.0

2 years ago

15.3.0

2 years ago

15.2.0

2 years ago

15.0.1

2 years ago

15.0.0

2 years ago

14.100.0

2 years ago

14.97.0

2 years ago

14.95.0

2 years ago

14.93.0

2 years ago

14.87.0

2 years ago

14.77.0

2 years ago

14.75.0

2 years ago

14.74.0

2 years ago

14.68.0

2 years ago

14.66.0

2 years ago

14.62.0

2 years ago

14.57.0

2 years ago

14.53.0

2 years ago

14.51.0

2 years ago

14.41.0

2 years ago

14.34.0

2 years ago

14.27.0

2 years ago

14.25.0

2 years ago

14.26.0

2 years ago

14.8.17

2 years ago

14.17.3

2 years ago

14.8.16

2 years ago

14.8.10

2 years ago

14.8.9

2 years ago

14.8.4

2 years ago

14.8.1

2 years ago

14.7.0

2 years ago

14.8.0

2 years ago

14.6.0

2 years ago

14.5.14

2 years ago

14.5.13

2 years ago

14.5.0

2 years ago

14.0.1

2 years ago

13.57.0

2 years ago

13.57.1

2 years ago

13.55.1

2 years ago

13.55.0

2 years ago

13.54.0

2 years ago

13.47.1

2 years ago

13.47.0

2 years ago

13.46.0

2 years ago

13.46.1

2 years ago

13.45.0

2 years ago

13.44.0

2 years ago

13.43.0

2 years ago

13.39.0

2 years ago

13.36.0

2 years ago

13.34.0

2 years ago

13.31.0

2 years ago

13.28.0

2 years ago

13.26.1

2 years ago

13.26.0

2 years ago

13.25.0

2 years ago

13.22.0

2 years ago

13.20.0

2 years ago

13.18.0

2 years ago

13.17.0

2 years ago

13.14.0

2 years ago

13.13.0

2 years ago

13.11.0

2 years ago

13.10.0

2 years ago

13.7.1

2 years ago

13.3.0

2 years ago

13.2.0

2 years ago

13.1.0

2 years ago

13.0.0

2 years ago

12.24.0

2 years ago

12.22.0

2 years ago

12.21.0

2 years ago

12.19.0

2 years ago

12.13.0

2 years ago

12.12.0

2 years ago

12.11.0

2 years ago

12.10.0

2 years ago

12.9.0

2 years ago

12.8.0

2 years ago

12.7.0

2 years ago

12.6.0

2 years ago

12.5.0

2 years ago

12.4.0

2 years ago

12.3.0

2 years ago

12.1.0

2 years ago

0.0.0

2 years ago

12.0.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago