-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 2.14 KB
/
package.json
File metadata and controls
63 lines (63 loc) · 2.14 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
56
57
58
59
60
61
62
63
{
"name": "employee-api-pact-testing",
"version": "1.0.0",
"description": "Contract testing for Employee Management API using Pact-JS",
"main": "index.js",
"scripts": {
"test": "jest",
"test:consumer": "jest --testPathPattern=consumer",
"test:provider": "jest --testPathPattern=provider",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src tests --ext .ts",
"lint:fix": "eslint src tests --ext .ts --fix",
"pact:publish": "pact-broker publish ./pacts --consumer-app-version $npm_package_version --broker-base-url $PACT_BROKER_BASE_URL --broker-username $PACT_BROKER_USERNAME --broker-password $PACT_BROKER_PASSWORD",
"pact:can-i-deploy": "pact-broker can-i-deploy --pacticipant employee-consumer --version $npm_package_version --to production",
"build": "tsc",
"build:watch": "tsc --watch",
"start:provider": "ts-node src/provider/mock-employee-provider.ts",
"demo": "ts-node src/demo/client-demo.ts",
"clean": "rimraf dist pacts logs"
},
"keywords": [
"pact",
"contract-testing",
"typescript",
"api-testing"
],
"author": "API Team",
"license": "MIT",
"devDependencies": {
"@pact-foundation/pact": "^12.1.0",
"@types/jest": "^29.5.0",
"@types/node": "^20.0.0",
"@types/express": "^4.17.17",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
"jest": "^29.5.0",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.0",
"typescript": "^5.0.0"
},
"dependencies": {
"axios": "^1.4.0",
"express": "^4.18.2"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/__tests__/**/*.test.ts",
"**/tests/**/*.test.ts"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!src/**/*.d.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
]
}
}