mirror of
https://github.com/iconify/collections-json.git
synced 2024-12-27 12:42:41 +00:00
08c5ce10f7
chore: modify target and module on tsconfig configuration
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import type { Config } from '@jest/types'
|
|
|
|
// see https://jestjs.io/docs/ecmascript-modules
|
|
|
|
export const buildConfiguration = (configuration: Partial<Config.InitialOptions>): Config.InitialOptions => {
|
|
return Object.assign({}, {
|
|
verbose: true,
|
|
moduleDirectories: [
|
|
'node_modules',
|
|
'src',
|
|
],
|
|
moduleFileExtensions: ['ts', 'js'],
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
}, configuration)
|
|
}
|