Skip to content

Commit

Permalink
fix prettier/jest and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Mar 20, 2024
1 parent c649d5f commit 0122873
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
15 changes: 15 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-disable no-undef */
/* eslint-disable functional/immutable-data */
module.exports = {
'preset': 'ts-jest',
'testEnvironment': 'node',
'collectCoverageFrom': [
'src/**/*.ts'
],
'coverageThreshold': {
'global': {
'lines': 100
}
},
prettierPath: require.resolve('prettier-2'),
};
35 changes: 12 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,14 @@
"repository": "chubbyts/chubbyts-http-node-bridge",
"scripts": {
"build": "node ./build.js",
"cs-fix": "prettier --write src tests",
"cs": "prettier --check src tests",
"cs-fix": "./node_modules/prettier/bin/prettier.cjs --write src tests",
"cs": "./node_modules/prettier/bin/prettier.cjs --check src tests",
"infection": "stryker run",
"lint-fix": "eslint src tests --fix",
"lint": "eslint src tests",
"prepare": "npm run build",
"test": "jest"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"collectCoverageFrom": [
"src/**/*.ts"
],
"coverageThreshold": {
"global": {
"lines": 100
}
}
},
"prettier": {
"printWidth": 120,
"tabWidth": 2,
Expand All @@ -59,15 +47,16 @@
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^2.0.3",
"@chubbyts/chubbyts-function-mock": "^1.4.1",
"@chubbyts/chubbyts-packaging": "^2.0.4",
"@stryker-mutator/core": "^7.1.1",
"@stryker-mutator/jest-runner": "^7.1.1",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.5",
"jest": "^29.6.2",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
"@chubbyts/chubbyts-packaging": "^2.0.6",
"@stryker-mutator/core": "^8.2.6",
"@stryker-mutator/jest-runner": "^8.2.6",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.30",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"prettier-2": "npm:prettier@^2.8.8",
"ts-jest": "^29.1.2",
"typescript": "^5.4.3"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 0122873

Please sign in to comment.