// @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/', ], };