Skip to content

Commit

Permalink
fix(tests): changing the tests had delay in restarting the test (#355)
Browse files Browse the repository at this point in the history
In interactive mode, a change to the test file would trigger a restart
of the entire test server. This is not ideal as it takes a long time (1-2 seconds) to
restart the server. This change will only restart the server when
changes to the server files are saved.
  • Loading branch information
mikavilpas authored Aug 10, 2024
1 parent f690604 commit d5f170d
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cy:run:ci": "concurrently --success command-cypress --kill-others --names 'client,server,cypress' --prefix-colors 'blue,green,yellow' 'npm run dev:client' 'npm run dev:server' 'wait-on --timeout 60000 http://127.0.0.1:5173 && npx cypress run'",
"dev": "concurrently --kill-others --names 'client,server,cypress' --prefix-colors 'blue,green,yellow' 'npm run dev:client' 'npm run dev:server' 'npm run cy:open'",
"dev:client": "vite",
"dev:server": "tsc-watch --noClear --onSuccess 'npx tsx ./server/server.ts'",
"dev:server": "nodemon --watch ./server --ext '*' --exec 'npx tsx ./server/server.ts'",
"eslint": "eslint --max-warnings=0 .",
"preview": "vite preview"
},
Expand Down Expand Up @@ -40,9 +40,9 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-only-tests": "3.1.0",
"express": "4.19.2",
"nodemon": "3.1.4",
"prettier-plugin-organize-imports": "4.0.0",
"tinycolor2": "1.6.0",
"tsc-watch": "6.2.0",
"typescript": "5.5.4",
"vite": "5.4.0"
}
Expand Down
193 changes: 193 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5f170d

Please sign in to comment.