/
package.json
50 lines (50 loc) · 1.11 KB
/
package.json
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
47
48
49
50
{
"name": "with-dependency",
"version": "0.0.1",
"scripts": {
"test": "jest --no-cache"
},
"jest": {
"preset": "ts-jest",
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!(dependency))"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "/test/index.spec.ts$",
"moduleDirectories": [
"<rootDir>/node_modules",
"node_modules"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"node"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/fileMock.js",
"\\.(s?css|sass)$": "<rootDir>/mocks/styleMock.js"
},
"globals": {
"ts-jest": {
"diagnostics": true,
"tsconfig": "<rootDir>/tsconfig.json"
}
}
},
"devDependencies": {
"@types/jest": "^26.0.10",
"dependency": "file:../dependency",
"jest": "^26.4.2",
"typescript": "^4.0.2"
},
"wantedDependencies": {
"typescript": "latest",
"@types/jest": "latest",
"jest": "latest"
},
"main": "./index.ts"
}