Skip to content

Commit d03258f

Browse files
committed
test(experimental): add tests for cli
1 parent 740b92b commit d03258f

File tree

9 files changed

+4108
-576
lines changed

9 files changed

+4108
-576
lines changed

experimental/li-cli/jest.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { pathsToModuleNameMapper } from 'ts-jest';
2+
import { compilerOptions } from './tsconfig.json';
3+
import type { JestConfigWithTsJest } from 'ts-jest';
4+
5+
const jestConfig: JestConfigWithTsJest = {
6+
roots: ['<rootDir>/src'],
7+
modulePaths: [compilerOptions.baseUrl],
8+
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
9+
preset: 'ts-jest',
10+
testEnvironment: 'node',
11+
};
12+
13+
export default jestConfig;

0 commit comments

Comments
 (0)