Skip to content

Commit 12460ca

Browse files
committed
fix prettier/jest and update dependencies
1 parent eefdb5f commit 12460ca

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

jest.config.cjs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* eslint-disable no-undef */
2+
/* eslint-disable functional/immutable-data */
3+
module.exports = {
4+
'preset': 'ts-jest',
5+
'testEnvironment': 'node',
6+
'collectCoverageFrom': [
7+
'src/**/*.ts'
8+
],
9+
'coverageThreshold': {
10+
'global': {
11+
'lines': 100
12+
}
13+
},
14+
prettierPath: require.resolve('prettier-2'),
15+
};

package.json

+12-26
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,14 @@
1414
"repository": "chubbyts/chubbyts-http-multipart",
1515
"scripts": {
1616
"build": "node ./build.js",
17-
"cs-fix": "prettier --write src tests",
18-
"cs": "prettier --check src tests",
17+
"cs-fix": "./node_modules/prettier/bin/prettier.cjs --write src tests",
18+
"cs": "./node_modules/prettier/bin/prettier.cjs --check src tests",
1919
"infection": "stryker run",
2020
"lint-fix": "eslint src tests --fix",
2121
"lint": "eslint src tests",
2222
"prepare": "npm run build",
2323
"test": "jest"
2424
},
25-
"jest": {
26-
"preset": "ts-jest",
27-
"testEnvironment": "node",
28-
"collectCoverageFrom": [
29-
"src/**/*.ts"
30-
],
31-
"coverageThreshold": {
32-
"global": {
33-
"lines": 100
34-
}
35-
},
36-
"coveragePathIgnorePatterns": [
37-
"src/index.ts"
38-
]
39-
},
4025
"prettier": {
4126
"printWidth": 120,
4227
"tabWidth": 2,
@@ -64,19 +49,20 @@
6449
"devDependencies": {
6550
"@chubbyts/chubbyts-eslint": "^2.0.3",
6651
"@chubbyts/chubbyts-function-mock": "^1.4.1",
67-
"@chubbyts/chubbyts-packaging": "^2.0.5",
68-
"@stryker-mutator/core": "^8.0.0",
69-
"@stryker-mutator/jest-runner": "^8.0.0",
52+
"@chubbyts/chubbyts-packaging": "^2.0.6",
53+
"@stryker-mutator/core": "^8.2.6",
54+
"@stryker-mutator/jest-runner": "^8.2.6",
7055
"@types/busboy": "^1.5.3",
71-
"@types/jest": "^29.5.11",
72-
"@types/node": "^20.11.2",
73-
"@types/qs": "^6.9.11",
56+
"@types/jest": "^29.5.12",
57+
"@types/node": "^20.11.30",
58+
"@types/qs": "^6.9.14",
7459
"form-data": "^4.0.0",
7560
"jest": "^29.7.0",
7661
"prettier": "^3.2.5",
77-
"qs": "^6.11.2",
78-
"ts-jest": "^29.1.1",
79-
"typescript": "^5.3.3"
62+
"prettier-2": "npm:prettier@^2.8.8",
63+
"qs": "^6.12.0",
64+
"ts-jest": "^29.1.2",
65+
"typescript": "^5.4.3"
8066
},
8167
"publishConfig": {
8268
"access": "public"

0 commit comments

Comments
 (0)