mirror of
https://github.com/actions/publish-action.git
synced 2026-08-07 13:12:26 +02:00
* Migrate to ESM * Use default semver import and root SemVer type --------- Co-authored-by: gowridurgad <gowridurgad@gmail.com>
28 lines
579 B
TypeScript
28 lines
579 B
TypeScript
import type {JestConfigWithTsJest} from 'ts-jest';
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
|
clearMocks: true,
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/*.test.ts'],
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
},
|
|
transform: {
|
|
'^.+\\.ts$': [
|
|
'ts-jest',
|
|
{
|
|
useESM: true,
|
|
diagnostics: {
|
|
ignoreCodes: [151002]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
transformIgnorePatterns: ['node_modules/(?!(@actions)/)'],
|
|
verbose: true
|
|
};
|
|
|
|
export default jestConfig;
|