2
0
mirror of https://github.com/iconify/collections-json.git synced 2024-11-25 14:17:46 +00:00
iconify-collections-json/jest/jest.shared.config.ts

19 lines
471 B
TypeScript
Raw Normal View History

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)
}