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 --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tsconfig.json') diff --git a/tsconfig.json b/tsconfig.json index d4aefa2..8ebe6d7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,8 @@ "isolatedModules": true, "esModuleInterop": true, "lib": ["ESNext", "DOM"], - "skipLibCheck": true + "skipLibCheck": true, + "types": ["vitest/globals"] }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], "references": [{ "path": "./tsconfig.node.json" }] -- cgit v1.2.3