Skip to content

Commit eb3ad4e

Browse files
committed
新增 Jest 配置文件以支持项目测试
1 parent 0486efa commit eb3ad4e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

jest.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
projects: [
3+
'<rootDir>/packages/foundation/*',
4+
'<rootDir>/packages/drivers/*',
5+
'<rootDir>/packages/runtime/*',
6+
'<rootDir>/packages/tools/cli',
7+
'<rootDir>/packages/tools/vscode-objectql',
8+
'<rootDir>/examples/showcase/*'
9+
],
10+
testPathIgnorePatterns: [
11+
'/node_modules/',
12+
'/dist/',
13+
'<rootDir>/packages/tools/create/'
14+
]
15+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testPathIgnorePatterns: ['/templates/']
5+
};

0 commit comments

Comments
 (0)