-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
56 lines (56 loc) · 1.6 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
51
52
53
54
55
56
{
"name": "frontend-test",
"version": "0.0.1",
"type": "module",
"engines": {
"npm": ">=7.20.3",
"node": ">=16.8.0"
},
"scripts": {
"dev": "vite dev --port 3000",
"build": "vite build",
"preview": "vite preview --port 3000",
"test": "jest src",
"test:watch": "npm run test -- --watch",
"test:coverage": "jest src --coverage --coverageDirectory='coverage' --coverageThreshold='{\"global\":{\"branches\":\"50\",\"functions\":\"80\",\"lines\":\"80\",\"statements\":\"80\"}}'",
"test:summary": "jest src --coverageReporters='text-summary'"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@sveltejs/adapter-node": "^1.0.0",
"@sveltejs/kit": "^1.0.0",
"@testing-library/svelte": "^3.2.2",
"babel-jest": "^29.3.1",
"babel-plugin-transform-vite-meta-env": "^1.0.3",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"svelte": "^3.55.0",
"svelte-jester": "^2.3.2",
"svelte-select": "^4.4.7",
"vite": "^4.0.1"
},
"_id": "frontend-test [email protected]",
"jest": {
"testEnvironment": "jsdom",
"setupFiles": [
"./scripts/jest/mockBrowser.js",
"./scripts/jest/suppressLogs.js"
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.svelte$": "svelte-jester"
},
"transformIgnorePatterns": [
"node_modules/(?!svelte-select)"
],
"moduleNameMapper": {
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
"^\\$app(.*)$": "<rootDir>/__mocks__/sveltekit/app$1",
"\\.css$": "<rootDir>/__mocks__/style.js"
},
"moduleFileExtensions": [
"js",
"svelte"
]
}
}