mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 17:35:57 +00:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { JestConfigWithTsJest } from 'ts-jest';
|
|
|
|
const config: JestConfigWithTsJest = {
|
|
preset: 'ts-jest',
|
|
roots: ['<rootDir>/packages/dockview-core'],
|
|
modulePaths: ['<rootDir>/packages/dockview-core/src'],
|
|
displayName: { name: 'dockview-core', color: 'blue' },
|
|
rootDir: '../../',
|
|
collectCoverageFrom: [
|
|
'<rootDir>/packages/dockview-core/src/**/*.{js,jsx,ts,tsx}',
|
|
],
|
|
setupFiles: [
|
|
'<rootDir>/packages/dockview-core/src/__tests__/__mocks__/resizeObserver.js',
|
|
],
|
|
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
|
|
coveragePathIgnorePatterns: ['/node_modules/'],
|
|
modulePathIgnorePatterns: [
|
|
'<rootDir>/packages/dockview-core/src/__tests__/__mocks__',
|
|
'<rootDir>/packages/dockview-core/src/__tests__/__test_utils__',
|
|
],
|
|
coverageDirectory: '<rootDir>/packages/dockview-core/coverage/',
|
|
testResultsProcessor: 'jest-sonar-reporter',
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: '<rootDir>/tsconfig.test.json',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default config;
|