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 600 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. transform: {
  5. '\\.[jt]sx?$': 'ts-jest',
  6. },
  7. globals: {
  8. 'ts-jest': {
  9. useESM: true,
  10. },
  11. },
  12. /*
  13. moduleNameMapper: {
  14. '(.+)\\.js': '$1',
  15. },
  16. */
  17. extensionsToTreatAsEsm: ['.ts'],
  18. setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
  19. testPathIgnorePatterns: ['<rootDir>/examples', '<rootDir>/node_modules', '<rootDir>/dist'],
  20. modulePathIgnorePatterns: ['<rootDir>/examples', '<rootDir>/node_modules', '<rootDir>/dist'],
  21. };
  22. export default config;
Tip!

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

Comments

Loading...