|
10 | 10 | "scripts": { |
11 | 11 | "lint": "eslint .", |
12 | 12 | "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" |
19 | 17 | }, |
20 | 18 | "repository": { |
21 | 19 | "type": "git", |
|
52 | 50 | "@babel/preset-react": "^7.12.10", |
53 | 51 | "@babel/register": "^7.12.10", |
54 | 52 | "@gasket/engine": "^6.36.1", |
55 | | - "assume": "^2.3.0", |
56 | | - "assume-sinon": "^1.1.0", |
| 53 | + "cross-env": "^7.0.3", |
57 | 54 | "eslint": "^8.7.0", |
58 | 55 | "eslint-config-godaddy": "^6.0.0", |
| 56 | + "eslint-plugin-jest": "^27.2.1", |
59 | 57 | "eslint-plugin-json": "^3.1.0", |
60 | | - "eslint-plugin-mocha": "^10.0.3", |
61 | 58 | "eslint-plugin-unicorn": "^44.0.0", |
62 | 59 | "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" |
68 | 61 | }, |
69 | 62 | "eslintConfig": { |
70 | 63 | "extends": [ |
71 | | - "godaddy" |
| 64 | + "godaddy", |
| 65 | + "plugin:jest/recommended" |
72 | 66 | ], |
73 | 67 | "plugins": [ |
74 | 68 | "unicorn" |
|
0 commit comments