Skip to content

Commit

Permalink
新增 Vitest 测试用例并更新依赖项
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhao98 committed Oct 27, 2024
1 parent 30f0ddd commit 9b0e628
Show file tree
Hide file tree
Showing 4 changed files with 2,308 additions and 1,345 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on:
push:
env:
TZ: Asia/Shanghai

jobs:
using-checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: yanhao98/composite-actions/setup-node-environment@main
- run: pnpm test
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"prepublishOnly": "pnpm run build",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
"docs:preview": "vitepress preview docs",
"dev": "vitest dev --root=src",
"test": "vitest test --coverage --root=src"
},
"author": "",
"license": "",
Expand All @@ -24,7 +26,16 @@
"url": "git+https://github.com/yanhao98/vue-memoize-dict.git"
},
"peerDependencies": {
"vue": "^3.0.0-0 || ^2.7.0"
"@vueuse/core": ">8.0.0",
"vue": ">2.7.0"
},
"peerDependenciesMeta": {
"@vueuse/core": {
"optional": false
},
"vue": {
"optional": false
}
},
"dependencies": {
"vue-demi": "^0.14.7"
Expand All @@ -37,12 +48,15 @@
"@vitejs/plugin-vue-jsx": "^3.1.0",
"@vitepress-demo-preview/component": "^2.3.2",
"@vitepress-demo-preview/plugin": "^1.2.3",
"@vitest/coverage-v8": "2.1.3",
"@vueuse/core": "^10.9.0",
"rimraf": "^5.0.5",
"rollup": "^4.13.2",
"rollup-plugin-cleanup": "^3.2.1",
"tslib": "^2.6.2",
"typescript": "^5.4.3",
"vitepress": "^1.0.1"
"vitepress": "^1.0.1",
"vitest": "^2.1.3",
"vue": "^3.5.12"
}
}
Loading

0 comments on commit 9b0e628

Please sign in to comment.