-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 2.39 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 2.39 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "mock-goto",
"version": "1.0.4",
"description": "A module to mock a Playwright or Puppeteer page's goto method",
"author": "samdouble",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/samdouble/mock-goto.git"
},
"main": "dist/index.js",
"module": "./dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": [
"dist"
],
"bugs": {
"url": "https://github.com/samdouble/mock-goto/issues"
},
"homepage": "https://github.com/samdouble/mock-goto#readme",
"keywords": [
"mocha",
"jest",
"playwright",
"puppeteer",
"goto",
"mock",
"stub"
],
"scripts": {
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
"prepack": "npm run build",
"lint": "oxlint",
"test:examples": "npm run build && npm --prefix examples install && npm --prefix examples test",
"test:jest": "npx jest ./lib/.*.test.ts",
"test:mocha": "mocha --require ts-node/register --check-leaks --recursive --timeout 5000 ./lib/**/*.test.ts",
"test": "nyc npm run test:mocha && nyc --no-clean npm run test:jest && nyc check-coverage --lines 100 --functions 100 --branches 92 && nyc report"
},
"dependencies": {
"sinon": "^22.0.0"
},
"devDependencies": {
"@babel/core": "^8.0.1",
"@babel/preset-env": "^8.0.2",
"@types/chai": "^5.2.3",
"@types/chai-as-promised": "^8.0.2",
"@types/jest": "^30.0.0",
"@types/mocha": "^10.0.3",
"@types/node": "^26.1.0",
"@types/sinon": "^22.0.0",
"@typescript/native": "npm:typescript@^7.0.2",
"babel-jest": "^30.4.1",
"chai": "^6.2.2",
"chai-as-promised": "^8.0.2",
"jest": "^30.4.2",
"mocha": "^11.7.6",
"nyc": "^18.0.0",
"oxlint": "^1.76.0",
"playwright": "^1.52.0",
"puppeteer": "^25.4.0",
"ts-jest": "^29.4.12",
"ts-node": "^10.9.1",
"tsup": "^8.5.0",
"typescript": "npm:@typescript/typescript6@^6.0.2"
},
"nyc": {
"all": true,
"include": [
"lib/**/*.ts"
],
"exclude": [
"lib/**/*.test.ts"
],
"reporter": [
"text",
"lcov"
],
"report-dir": "coverage"
},
"overrides": {
"diff": "^9.0.0",
"serialize-javascript": "^7.0.7",
"ts-jest": {
"@babel/core": "$@babel/core"
}
}
}