summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-03 23:51:00 +0100
committerJulien Dessaux2023-01-03 23:51:00 +0100
commitc5d2d7ca77a502ea607d2db5ecdec972bc76bc69 (patch)
tree877c4bb29aef5ba8de491d78cfc9ee7e31232ad7 /GNUmakefile
parentContinue adding tests (diff)
downloadjeux-de-mots-c5d2d7ca77a502ea607d2db5ecdec972bc76bc69.tar.gz
jeux-de-mots-c5d2d7ca77a502ea607d2db5ecdec972bc76bc69.tar.bz2
jeux-de-mots-c5d2d7ca77a502ea607d2db5ecdec972bc76bc69.zip
Fixed fixtures and testing
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index badea96..47028dd 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,6 +12,8 @@ init: ## make init # initialize project dependencies
.PHONY: serve
serve: ## make serve # run a self reloading nodejs web server
+ rm -f jdm.db sessions.db
+ NODE_ENV=development node fixtures.js
NODE_ENV=development nodemon main.js
.PHONY: run
@@ -22,7 +24,7 @@ run: ## make run # run a production nodejs web server
test: check ## make test # run tests
@rm -f testjdm.db testsessions.db
NODE_ENV=test node fixtures.js
- NODE_ENV=test vitest
+ NODE_ENV=test vitest --config .vite.config.ts
@rm -f testjdm.db testsessions.db
help: