-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json.test-scripts
More file actions
55 lines (55 loc) · 1.6 KB
/
package.json.test-scripts
File metadata and controls
55 lines (55 loc) · 1.6 KB
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
{
"name": "nexus-test-scripts",
"description": "Test scripts for NEXUS system",
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:unit": "jest test/unit",
"test:integration": "jest test/integration",
"test:e2e": "jest test/e2e",
"test:performance": "node test/performance/load-test.js",
"test:security": "node test/security/security-test.js",
"test:ci": "jest --ci --coverage --watchAll=false",
"test:runner": "node test-runner.js",
"test:all": "npm run test:unit && npm run test:integration && npm run test:e2e",
"test:full": "npm run test:all && npm run test:performance && npm run test:security"
},
"devDependencies": {
"jest": "^29.5.0",
"supertest": "^6.3.3",
"mongodb-memory-server": "^8.13.0",
"nock": "^13.3.1",
"sinon": "^15.2.0",
"faker": "^6.6.6",
"artillery": "^2.0.0",
"@jest/globals": "^29.5.0",
"jest-environment-node": "^29.5.0"
},
"jest": {
"testEnvironment": "node",
"setupFilesAfterEnv": ["<rootDir>/test/setup.js"],
"collectCoverageFrom": [
"controllers/**/*.js",
"middleware/**/*.js",
"models/**/*.js",
"routes/**/*.js",
"services/**/*.js",
"!**/node_modules/**",
"!**/coverage/**",
"!**/test/**"
],
"coverageDirectory": "coverage",
"coverageReporters": ["text", "lcov", "html", "json"],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
},
"testTimeout": 30000,
"verbose": true
}
}