Files
sim/jest.config.js

20 lines
425 B
JavaScript

/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
// Mock CSS imports
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
testMatch: ['**/__tests__/**/*.test.ts'],
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
},
],
},
}