mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 09:11:06 +00:00
c015c8a162
CI merge with main dropped verboseInfo/parseCssColor exports and broke the Vite build. Restore the PR logger and colour helpers, reinstate the Jest color mock map, and update glob to v13 with overrides. Co-authored-by: Cursor <[email protected]>
27 lines
767 B
JavaScript
27 lines
767 B
JavaScript
export default {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: [
|
|
'**/__tests__/**/*.ts',
|
|
'**/?(*.)+(spec|test).ts'
|
|
],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
'^.+\\.js$': ['ts-jest', { tsconfig: { allowJs: true } }],
|
|
},
|
|
transformIgnorePatterns: [
|
|
'/node_modules/(?!(color|color-string|color-convert|color-name)/)',
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^color$': '<rootDir>/src/test/mocks/color.ts',
|
|
'^webextension-polyfill$': '<rootDir>/src/test/mocks/webextension-polyfill.ts',
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/src/test/jest.setup.ts'],
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.d.ts',
|
|
],
|
|
};
|