@apistudio/apim-cli
Version:
CLI for API Management Products
19 lines (18 loc) • 385 B
JavaScript
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
// Explicitly tell Jest to ignore the dist directory
testPathIgnorePatterns: [
'/node_modules/',
'/dist/'
],
transform: {
'^.+\\.tsx?$': ['ts-jest', {
useESM: true
}]
}
};