mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-13 21:52:36 +03:00
24 lines
586 B
TypeScript
24 lines
586 B
TypeScript
import type { JestConfigWithTsJest } from 'ts-jest';
|
|
|
|
const config: JestConfigWithTsJest = {
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
modulePathIgnorePatterns: ['lib', 'node_modules'],
|
|
transform: {
|
|
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
|
|
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
useESM: true,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
export default config;
|