Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Simplify steps when developing cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimaMateria committed Nov 3, 2022
1 parent 9bb3767 commit b21145b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cypress/test-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"version": "1.0.0",
"private": true,
"scripts": {
"start": "direflow-scripts start",
"build": "direflow-scripts build",
"serve": "serve ./public"
"start": "PORT=5000 direflow-scripts start",
"build": "direflow-scripts build && cp ./public/* ./build",
"serve": "serve ./build -l 5000"
},
"dependencies": {
"@material-ui/core": "^4.9.7",
Expand Down
8 changes: 2 additions & 6 deletions scripts/bash/startIntegrationTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ install() {
build() {
npm run build

cp build/direflowBundle.js public/direflowBundle.js

npm run serve -- -l 5000 &
# Replace with pm2 and kill by id, not by port
npm run serve &
wait-on http://localhost:5000
}

# CleanUp
cleanup() {
rm cypress/test-setup/public/direflowBundle.js
sleep 2

echo "Cypress has finished testing"
echo "Closing dev server ..."

Expand Down

0 comments on commit b21145b

Please sign in to comment.