Files
BetterSEQTA-Plus/jest.config.js
T
AdenMGB c015c8a162 fix: restore verboseLog/parseCssColor after main merge and bump glob
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]>
2026-07-19 09:09:40 +09:30

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