mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
20 lines
451 B
JavaScript
20 lines
451 B
JavaScript
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||
|
module.exports = {
|
||
|
projects: ['<rootDir>/packages/app'],
|
||
|
preset: 'ts-jest',
|
||
|
testEnvironment: 'node',
|
||
|
moduleNameMapper: {
|
||
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||
|
},
|
||
|
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,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|