Move start-server-and-test to parent page.

This commit is contained in:
Paulo Gustavo Veiga 2023-07-02 09:44:50 -07:00
parent d90e998c06
commit de05a5969b

View File

@ -17,7 +17,7 @@
"lint": "eslint src --ext js,ts,tsx", "lint": "eslint src --ext js,ts,tsx",
"playground": "webpack serve --config webpack.playground.js", "playground": "webpack serve --config webpack.playground.js",
"test": "yarn test:unit && yarn test:integration", "test": "yarn test:unit && yarn test:integration",
"test:integration": "start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy:run'", "test:integration": "npx start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy:run'",
"test:unit": "jest ./test/unit/* --detectOpenHandles" "test:unit": "jest ./test/unit/* --detectOpenHandles"
}, },
"dependencies": { "dependencies": {
@ -35,8 +35,7 @@
"cypress-image-snapshot": "^4.0.1", "cypress-image-snapshot": "^4.0.1",
"jest-transform-stub": "^2.0.0", "jest-transform-stub": "^2.0.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0"
"start-server-and-test": "^2.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"@emotion/react": "^11.10.5", "@emotion/react": "^11.10.5",