Files
CRM-Mono/apps/api/jest.config.cts
Igor Rybakov b9918116ae
Some checks failed
CI / main (push) Has been cancelled
Переименование с init названия
2026-03-06 23:27:57 +02:00

22 lines
609 B
TypeScript

/* eslint-disable */
const { readFileSync } = require('fs');
// Reading the SWC compilation config for the spec files
const swcJestConfig = JSON.parse(
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8'),
);
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
swcJestConfig.swcrc = false;
module.exports = {
displayName: '@spairtech/api',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: 'test-output/jest/coverage',
};