test: support e2e in storybook (#1533)

This commit is contained in:
Himself65
2023-03-24 22:25:27 -05:00
committed by GitHub
parent 6d13716e97
commit d8e48ef6aa
10 changed files with 1103 additions and 378 deletions
+9 -5
View File
@@ -11,15 +11,17 @@
],
"scripts": {
"dev": "dev-web",
"dev:ac": "NODE_API_SERVER=ac yarn workspace @affine/app dev",
"dev:local": "NODE_API_SERVER=local yarn workspace @affine/app dev",
"dev:ac": "NODE_API_SERVER=ac yarn workspace @affine/web dev",
"dev:local": "NODE_API_SERVER=local yarn workspace @affine/web dev",
"dev:app": "yarn workspace @affine/electron dev:app",
"build": "yarn workspace @affine/app build",
"build": "yarn workspace @affine/web build",
"build:client": "yarn workspace @affine/client-app build:app",
"build:storybook": "yarn workspace @affine/component build-storybook",
"bump:nightly": "./scripts/bump-blocksuite.sh",
"export": "yarn workspace @affine/app export",
"start": "yarn workspace @affine/app start",
"export": "yarn workspace @affine/web export",
"start": "yarn workspace @affine/web start",
"start:storybook": "yarn exec serve packages/component/storybook-static -l 6006",
"start:e2e": "yar dlx run-p start start:storybook",
"lint": "eslint . --ext .js,mjs,.ts,.tsx",
"lint:fix": "yarn lint --fix",
"test": "playwright test",
@@ -64,8 +66,10 @@
"prettier": "^2.8.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"serve": "^14.2.0",
"typescript": "^5.0.2",
"vite": "^4.2.0",
"vite-plugin-istanbul": "^4.0.1",
"vitest": "^0.29.3",
"vitest-fetch-mock": "^0.2.2"
},