diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-24 21:43:44 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 21:43:44 +0100 |
| commit | 73131da73da41c64135ed4236bd84ddba6e0c149 (patch) | |
| tree | 6849f0d2884b103e432980330f866b995b7f5947 /package.json | |
| parent | 6b5c861eea12c67c4440d9e086513bd8b196c150 (diff) | |
| parent | 2de1ca173ee3d8e5886a1b3fdc4afbe102fad22f (diff) | |
build: configure Jest
Since Next.js v12, we can use next/js package with some
preconfigured Jest options.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json index 48c10da..f61f8e7 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "i18n:extract": "formatjs extract 'src/**/*.ts*' --out-file src/i18n/en.json", "release": "standard-version -s", "test": "jest", + "test:ci": "jest --ci", "test:coverage": "jest --coverage", "test:watch": "jest --watch" }, @@ -60,7 +61,9 @@ "@commitlint/config-conventional": "^16.2.1", "@formatjs/cli": "^4.8.2", "@svgr/webpack": "^6.2.1", + "@testing-library/jest-dom": "^5.16.3", "@testing-library/react": "^12.1.4", + "@testing-library/user-event": "^13.5.0", "@types/mdx": "^2.0.1", "@types/node": "^17.0.21", "@types/prismjs": "^1.26.0", @@ -70,11 +73,12 @@ "eslint-config-next": "^12.1.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-formatjs": "^3.0.0", + "eslint-plugin-testing-library": "^5.1.0", "husky": "^7.0.4", "jest": "^27.5.1", "lint-staged": "^12.3.5", + "next-router-mock": "^0.6.5", "prettier": "^2.5.1", - "react-test-renderer": "^17.0.2", "sass": "^1.49.9", "standard-version": "^9.3.2", "stylelint": "^14.5.3", |
