aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json20
1 files changed, 13 insertions, 7 deletions
diff --git a/package.json b/package.json
index b07d6e2..9982bd8 100644
--- a/package.json
+++ b/package.json
@@ -18,9 +18,9 @@
},
"private": true,
"scripts": {
- "predev": "npm run i18n:compile",
+ "predev": "yarn run i18n:compile",
"dev": "next dev",
- "prebuild": "npm run i18n:compile",
+ "prebuild": "yarn run i18n:compile",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
@@ -29,12 +29,15 @@
"i18n:compile": "formatjs compile-folder src/i18n lang/",
"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",
+ "test": "yarn run test:unit && yarn run test:e2e",
+ "test:e2e": "cypress run",
+ "test:e2e:ui": "cypress open",
+ "test:unit": "jest",
+ "test:unit:ci": "jest --ci",
+ "test:unit:coverage": "jest --coverage",
+ "test:unit:watch": "jest --watch",
"storybook": "start-storybook -p 6006",
- "build-storybook": "build-storybook"
+ "storybook:build": "build-storybook"
},
"dependencies": {
"@formatjs/swc-plugin": "^1.4.0",
@@ -72,14 +75,17 @@
"@storybook/testing-library": "^0.0.11",
"@storybook/theming": "^6.5.6",
"@svgr/webpack": "^6.2.1",
+ "@testing-library/cypress": "^8.0.2",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.2.0",
+ "@types/jest": "^28.1.0",
"@types/mdx": "^2.0.1",
"@types/node": "^17.0.38",
"@types/prismjs": "^1.26.0",
"@types/react": "^18.0.10",
"@types/use-ackee": "^2.0.0",
+ "cypress": "^10.0.1",
"eslint": "^8.13.0",
"eslint-config-next": "^12.1.5",
"eslint-config-prettier": "^8.5.0",