feat(tooling): add test task that runs and tests the example automatically

This commit is contained in:
Christopher Möller
2022-07-27 16:56:39 +02:00
parent e6ff928ea1
commit 8eb1053aed
2 changed files with 5069 additions and 7346 deletions

View File

@@ -11,9 +11,13 @@
"private": true,
"scripts": {
"dev": "preconstruct watch",
"dev:example": "cd examples/nextjs && yarn dev",
"postinstall": "preconstruct dev",
"build": "preconstruct build",
"test": "cypress run --browser chrome"
"test:all": "yarn test:chrome && yarn test:firefox",
"test:chrome": "cypress run --browser chrome",
"test:firefox": "cypress run --browser firefox",
"test": "yarn build && start-server-and-test dev:example http://localhost:3000 test:chrome"
},
"dependencies": {
"react": "^18.1.0",
@@ -29,6 +33,7 @@
"cypress": "^10.3.1",
"postcss": "^8.4.14",
"postcss-nested": "^5.0.6",
"start-server-and-test": "^1.14.0",
"typescript": "^4.7.4"
},
"preconstruct": {

12408
yarn.lock

File diff suppressed because it is too large Load Diff