diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-12-18 20:26:07 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-12-18 20:26:07 +1100 |
| commit | fac881d61176f04a4062db710df98924a76b0ffb (patch) | |
| tree | 6c55c0f100668888a31dc54daa24d9d794bdba76 /package.json | |
| parent | 83366605d1bd43c245c4c110fadfd1a6fd05d3c2 (diff) | |
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
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json index abcc393..a109c09 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "vue-tsc --noEmit && vite build", "preview": "vite preview", - "tsc": "vue-tsc --noEmit" + "tsc": "vue-tsc --noEmit", + "test": "vitest" }, "author": "Terry Truong", "license": "MIT", @@ -17,17 +18,20 @@ "vue": "^3.2.37" }, "devDependencies": { + "@testing-library/vue": "^6.6.1", "@typescript-eslint/eslint-plugin": "^5.39.0", "@typescript-eslint/parser": "^5.39.0", "@vitejs/plugin-vue": "^3.1.0", "autoprefixer": "^10.4.12", "eslint": "^8.24.0", "eslint-plugin-vue": "^9.6.0", + "happy-dom": "^8.1.0", "postcss": "^8.4.17", "smartcrop-cli": "^2.0.3", "tailwindcss": "^3.1.8", "typescript": "^4.6.4", "vite": "^3.1.0", + "vitest": "^0.25.8", "vue-tsc": "^0.40.4" } } |
