mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 05:47:49 +00:00
Upgrade to ESM and upgrade node fetch
This commit is contained in:
parent
2028fbc5c2
commit
100690a6a6
20 changed files with 16193 additions and 7907 deletions
|
|
@ -1,11 +1,18 @@
|
|||
module.exports = {
|
||||
export default {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/*.test.ts'],
|
||||
testRunner: 'jest-circus/runner',
|
||||
extensionsToTreatAsEsm: ['.ts'],
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
useESM: true
|
||||
}
|
||||
},
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest'
|
||||
},
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
verbose: true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue