mirror of
https://github.com/actions/checkout.git
synced 2026-07-21 13:51:22 +08:00
upgrade module to esm so I can update dependencies
This commit is contained in:
parent
537c7ef99c
commit
92a02296ed
56 changed files with 29266 additions and 24103 deletions
24
jest.config.ts
Normal file
24
jest.config.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue