@alessiofrittoli/exception 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/package.json +4 -15
package/README.md
CHANGED
|
@@ -306,25 +306,12 @@ Run all the defined test suites by running the following:
|
|
|
306
306
|
# Run tests and watch file changes.
|
|
307
307
|
pnpm test:watch
|
|
308
308
|
|
|
309
|
-
# Run tests and watch file changes with jest-environment-jsdom.
|
|
310
|
-
pnpm test:jsdom
|
|
311
|
-
|
|
312
309
|
# Run tests in a CI environment.
|
|
313
310
|
pnpm test:ci
|
|
314
|
-
|
|
315
|
-
# Run tests in a CI environment with jest-environment-jsdom.
|
|
316
|
-
pnpm test:ci:jsdom
|
|
317
311
|
```
|
|
318
312
|
|
|
319
|
-
You can eventually run specific suits like so:
|
|
320
|
-
|
|
321
313
|
- See [`package.json`](./package.json) file scripts for more info.
|
|
322
314
|
|
|
323
|
-
```bash
|
|
324
|
-
pnpm test:jest
|
|
325
|
-
pnpm test:jest:jsdom
|
|
326
|
-
```
|
|
327
|
-
|
|
328
315
|
Run tests with coverage.
|
|
329
316
|
|
|
330
317
|
An HTTP server is then started to serve coverage files from `./coverage` folder.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alessiofrittoli/exception",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Handle errors with ease",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Alessio Frittoli",
|
|
@@ -59,31 +59,21 @@
|
|
|
59
59
|
"//2c": "*********************************************************************",
|
|
60
60
|
"test": "jest --verbose",
|
|
61
61
|
"test:watch": "jest --watchAll --verbose",
|
|
62
|
-
"test:jsdom": "JSDOM=true pnpm test:watch",
|
|
63
62
|
"test:ci": "jest --ci --verbose",
|
|
64
|
-
"test:ci:jsdom": "JSDOM=true pnpm test:ci",
|
|
65
63
|
"//3a": "*********************************************************************",
|
|
66
64
|
"//3b": "************************ UNIT TESTS COVERAGE ************************",
|
|
67
65
|
"//3c": "*********************************************************************",
|
|
68
66
|
"test:coverage": "pnpm test:watch --coverage",
|
|
69
67
|
"test:ci:coverage": "pnpm test:ci --coverage",
|
|
70
68
|
"test:serve-coverage": "http-server ./coverage/lcov-report --gzip true -p 0 -o --silent",
|
|
71
|
-
"test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\""
|
|
72
|
-
"test:coverage:jsdom": "JSDOM=true pnpm test:coverage",
|
|
73
|
-
"test:coverage:jsdom:serve": "JSDOM=true pnpm test:coverage:serve",
|
|
74
|
-
"//4a": "*********************************************************************",
|
|
75
|
-
"//4b": "************************ TARGETED UNIT TESTS ************************",
|
|
76
|
-
"//4c": "*********************************************************************",
|
|
77
|
-
"test:jest": "pnpm test:watch jest.test.ts",
|
|
78
|
-
"test:jest:jsdom": "JSDOM=true pnpm test:jest",
|
|
79
|
-
"test:exception": "pnpm test:watch exception.test.ts"
|
|
69
|
+
"test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\""
|
|
80
70
|
},
|
|
81
71
|
"devDependencies": {
|
|
82
|
-
"@alessiofrittoli/node-scripts": "^2.
|
|
72
|
+
"@alessiofrittoli/node-scripts": "^2.4.0",
|
|
83
73
|
"@eslint/js": "^9.22.0",
|
|
84
74
|
"@jest/globals": "^29.7.0",
|
|
85
75
|
"@types/jest": "^29.5.14",
|
|
86
|
-
"@types/node": "^22.13.
|
|
76
|
+
"@types/node": "^22.13.11",
|
|
87
77
|
"concurrently": "^9.1.2",
|
|
88
78
|
"dotenv": "^16.4.7",
|
|
89
79
|
"esbuild": "0.25.1",
|
|
@@ -91,7 +81,6 @@
|
|
|
91
81
|
"globals": "^16.0.0",
|
|
92
82
|
"http-server": "^14.1.1",
|
|
93
83
|
"jest": "^29.7.0",
|
|
94
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
95
84
|
"ts-jest": "^29.2.6",
|
|
96
85
|
"ts-node": "^10.9.2",
|
|
97
86
|
"tsup": "^8.4.0",
|