Files
checkout/jest.config.ts
T
Kai 67ead93a69
Check dist / check-dist (push) Canceled after 2s
CodeQL / Analyze (javascript) (push) Canceled after 3s
Licensed / Check licenses (push) Canceled after 5s
Build and Test / test (macos-latest) (push) Canceled after 0s
Build and Test / test (windows-latest) (push) Canceled after 0s
Build and Test / test-git-container (push) Canceled after 0s
Build and Test / test-output (push) Canceled after 0s
Build and Test / build (push) Canceled after 5s
Build and Test / test (ubuntu-latest) (push) Canceled after 1s
Build and Test / test-proxy (push) Canceled after 1s
Build and Test / test-bypass-proxy (push) Canceled after 0s
first commit
2026-09-21 00:18:16 +08:00

25 lines
496 B
TypeScript

export default {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
roots: ['<rootDir>'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
useESM: true,
diagnostics: {
ignoreCodes: [151002]
}
}
]
},
extensionsToTreatAsEsm: ['.ts'],
transformIgnorePatterns: ['node_modules/(?!(@actions)/)'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
verbose: true
}