Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

jest.config.ts 700 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
  2. import type { Config } from 'jest';
  3. const config: Config = {
  4. collectCoverage: false,
  5. coverageDirectory: '.coverage',
  6. coverageProvider: 'v8',
  7. extensionsToTreatAsEsm: ['.ts'],
  8. modulePathIgnorePatterns: ['<rootDir>/dist', '<rootDir>/examples', '<rootDir>/node_modules'],
  9. setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
  10. setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
  11. testPathIgnorePatterns: [
  12. '.*\\.test\\.tsx$',
  13. '.*\\.integration\\.test\\.ts$',
  14. '<rootDir>/dist',
  15. '<rootDir>/examples',
  16. '<rootDir>/node_modules',
  17. ],
  18. transform: {
  19. '^.+\\.m?[tj]sx?$': '@swc/jest',
  20. },
  21. };
  22. export default config;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...