mirror of
https://code.forgejo.org/actions/cache.git
synced 2026-06-14 00:55:40 +00:00
Update packages, migrate to ESM
This commit is contained in:
parent
27d5ce7f10
commit
80f777761d
13 changed files with 2503 additions and 2019 deletions
21
jest.config.ts
Normal file
21
jest.config.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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)/)'],
|
||||
verbose: true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue