aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
blob: d0ba361eaede0a9905d8fad1180439108a619033 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// @ts-check

const { join } = require('path');

/** @type {import('ts-jest').InitialOptionsTsJest} */
module.exports = {
  preset: 'ts-jest',
  globals: {
    'ts-jest': {
      isolatedModules: true,
    },
  },
  moduleNameMapper: {
    '@sophie/(.+)': join(__dirname, 'packages/$1/src/index.ts'),
  },
  resetMocks: true,
  restoreMocks: true,
  testEnvironment: 'node',
  testPathIgnorePatterns: [
    '/dist/',
    '/dist-types',
    '/node_modules/',
  ],
};