From b92dd0a4c59287b661759d3cdcd6f62e1afcd815 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 22:28:51 +0100 Subject: feat: Add test to generate function Add testing for `generate` rust function. That function is pretty much the whole bussiness logic of the application and as far as I can see the only one worth testing. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5ae5e87..795de5c 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ -all: cargo +all: wasm cd www && \ npm install && \ npm run build -serve: cargo +serve: wasm cd www && \ npm install && \ npm run start -cargo: +wasm: wasm-pack build --no-typescript --release + +test: + wasm-pack test --headless --firefox -- cgit v1.2.3