From fac881d61176f04a4062db710df98924a76b0ffb Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 18 Dec 2022 20:26:07 +1100 Subject: Add unit testing Install vitest, happy-dom, and @testing-library/vue Add lib.ts and rbtree.ts tests in tests/ Modularise some date-range-managing code from App.vue into lib.ts --- vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 6baaeb0..729378a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +/// import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' @@ -14,4 +15,8 @@ export default defineConfig({ build: { sourcemap: true, }, + test: { + globals: true, + environment: 'happy-dom', + }, }) -- cgit v1.2.3