Skip to content

Commit a7df763

Browse files
jest refactor @gasket/plugin-swagger (#537)
1 parent 6a14b66 commit a7df763

File tree

3 files changed

+124
-142
lines changed

3 files changed

+124
-142
lines changed

package-lock.json

Lines changed: 6 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/gasket-plugin-swagger/package.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
"scripts": {
1111
"lint": "eslint .",
1212
"lint:fix": "npm run lint -- --fix",
13-
"test": "npm run test:runner",
14-
"test:runner": "mocha --require setup-env --recursive \"test/**/*.*(test|spec).js\" --exit",
15-
"test:watch": "npm run test:runner -- --watch",
16-
"test:coverage": "nyc --reporter=text --reporter=json-summary npm run test:runner",
17-
"posttest": "npm run lint",
18-
"report": "nyc report --reporter=lcov"
13+
"test": "cross-env NODE_OPTIONS='--unhandled-rejections=strict' jest",
14+
"test:watch": "jest --watch",
15+
"test:coverage": "jest --coverage",
16+
"posttest": "npm run lint"
1917
},
2018
"repository": {
2119
"type": "git",
@@ -52,23 +50,19 @@
5250
"@babel/preset-react": "^7.12.10",
5351
"@babel/register": "^7.12.10",
5452
"@gasket/engine": "^6.36.1",
55-
"assume": "^2.3.0",
56-
"assume-sinon": "^1.1.0",
53+
"cross-env": "^7.0.3",
5754
"eslint": "^8.7.0",
5855
"eslint-config-godaddy": "^6.0.0",
56+
"eslint-plugin-jest": "^27.2.1",
5957
"eslint-plugin-json": "^3.1.0",
60-
"eslint-plugin-mocha": "^10.0.3",
6158
"eslint-plugin-unicorn": "^44.0.0",
6259
"fastify": "^4.1.0",
63-
"mocha": "^10.0.0",
64-
"nyc": "^15.1.0",
65-
"proxyquire": "^2.1.3",
66-
"setup-env": "^2.0.0",
67-
"sinon": "^14.0.0"
60+
"jest": "^29.3.1"
6861
},
6962
"eslintConfig": {
7063
"extends": [
71-
"godaddy"
64+
"godaddy",
65+
"plugin:jest/recommended"
7266
],
7367
"plugins": [
7468
"unicorn"

0 commit comments

Comments
 (0)