mirror of
https://github.com/actions/setup-node.git
synced 2026-07-14 18:52:21 +03:00
8207627860
* Migrate to ESM * updated package.json version * Update README for v6 and clean up dev dependencies * Remove unused ts-node * fix audit issue --------- Co-authored-by: gowridurgad <gowridurgad@gmail.com>
25 lines
496 B
TypeScript
25 lines
496 B
TypeScript
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
|
|
}
|