-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
46 lines (46 loc) · 1.18 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
preset: "ts-jest/presets/default",
testEnvironment: "node",
// transform: {},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
transform: {
'^.+\\.[tj]sx?$': [
'ts-jest',
],
},
"transformIgnorePatterns": ["/node_modules/", '/__tests__/__mocks__/openai.ts'],
testPathIgnorePatterns: [
"/node_modules/",
"/__mocks__/",
"/__utils__/",
"/__data__/",
"/build/",
"/dist/",
// "/unit/parser/",
// "/unit/prompt/",
// // "/unit/llm/",
// "/unit/utils/",
// "/unit/utils/asyncCallWithTimeout.js",
// "/unit/executor/",
// "/unit/executor/core.js",
// "/unit/executor/functions.js",
// "/unit/executor/_metadata.js",
// "/unit/executor/llm.js",
// "/unit/callable/",
],
collectCoverageFrom: [
"<rootDir>/src/**/*.ts",
"!<rootDir>/types/*.ts",
"!<rootDir>/types/*.d.ts",
"!<rootDir>/src/types/*.ts",
"!<rootDir>/src/index.ts",
"!<rootDir>/src/vector/*.ts",
"!<rootDir>/src/embedding/*.ts",
"!<rootDir>/src/interfaces/*.ts",
"!<rootDir>/src/interfaces/*.ts",
"!<rootDir>/types/*",
"!<rootDir>/src/utils/modules/handlebars/helpers/*.ts",
],
};