mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 14:39:58 +08:00
Migrate to ESM and upgrade dependencies
This commit is contained in:
parent
54baeea5b3
commit
6900cbed63
64 changed files with 56453 additions and 51160 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