1
0
mirror of https://gitea.com/actions/download-artifact.git synced 2026-02-03 04:44:29 +07:00

Upgrade jest and typescript

This commit is contained in:
Daniel Kennedy
2026-01-30 14:15:49 -05:00
parent 43c2394920
commit 1d636af56d
2 changed files with 18 additions and 6 deletions

View File

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