summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-12 19:54:27 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-12 19:54:27 +0100
commitf3d462c8183598362605dc53589583f2859f20b9 (patch)
tree46dbcaef2d6a29ee3ec3116a0a5cc271b15013ee /package.json
parente5399c5af894736b9593c09d440089e91f6a7042 (diff)
build: configure Jest
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 10 insertions, 1 deletions
diff --git a/package.json b/package.json
index 32999dd..47d9610 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,10 @@
"lint": "next lint",
"i18n:compile": "lingui compile",
"i18n:extract": "NODE_ENV=development lingui extract",
- "release": "standard-version -s"
+ "release": "standard-version -s",
+ "test": "jest",
+ "test:coverage": "jest --coverage",
+ "test:watch": "jest --watch"
},
"dependencies": {
"@lingui/react": "^3.13.0",
@@ -37,20 +40,26 @@
},
"devDependencies": {
"@babel/core": "^7.16.0",
+ "@babel/preset-env": "^7.16.4",
+ "@babel/preset-react": "^7.16.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@lingui/cli": "^3.13.0",
"@lingui/macro": "^3.13.0",
"@svgr/webpack": "^6.1.2",
+ "@testing-library/react": "^12.1.2",
"@types/node": "16.11.12",
"@types/react": "17.0.37",
+ "babel-jest": "^27.4.4",
"babel-plugin-macros": "^3.1.0",
"eslint": "^8.4.1",
"eslint-config-next": "^12.0.7",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.4",
+ "jest": "^27.4.4",
"lint-staged": "^12.1.2",
"prettier": "^2.5.1",
+ "react-test-renderer": "^17.0.2",
"sass": "^1.45.0",
"standard-version": "^9.3.2",
"stylelint": "^14.1.0",