From c5d2d7ca77a502ea607d2db5ecdec972bc76bc69 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 3 Jan 2023 23:51:00 +0100 Subject: Fixed fixtures and testing --- GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') 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: -- cgit v1.2.3