Skip to content

Commit

Permalink
feat: 集成单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 7, 2023
1 parent 4a7b1a2 commit 25be93a
Show file tree
Hide file tree
Showing 16 changed files with 1,015 additions and 335 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ build
# widget
widget
archive.zip
components.d.ts
components.d.ts

# test
coverage
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"scripts": {
"serve": "python scripts/serve.py",
"dev": "python scripts/dev.py",
"test": "vitest",
"coverage": "vitest run --coverage",
"build": "python scripts/build.py",
"pluginDev": "python scripts/plugin_dev.py",
"pluginBuild": "python scripts/plugin_build.py",
Expand All @@ -24,14 +26,16 @@
"syncWidgetRepo": "python scripts/sync_widget_repo.py"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^7.0.0",
"@terwer/esbuild-config-custom": "^1.0.12",
"@terwer/eslint-config-custom": "^1.3.6",
"@types/node": "^18.17.3",
"@vitejs/plugin-vue": "^4.2.3",
"@vitest/coverage-v8": "^0.34.1",
"@vue/test-utils": "^2.4.1",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-style-plugin": "^1.6.2",
"fast-glob": "^3.3.1",
"jsdom": "^22.1.0",
"minimist": "^1.2.8",
"rollup-plugin-livereload": "^2.0.5",
"stylus": "^0.59.0",
Expand Down Expand Up @@ -62,13 +66,13 @@
"vue-router": "^4.2.4",
"xmlbuilder2": "^3.1.1",
"zhi-blog-api": "^1.20.11",
"zhi-common": "^1.13.1",
"zhi-common": "^1.13.3",
"zhi-device": "^2.3.0",
"zhi-fetch-middleware": "^0.2.14",
"zhi-github-middleware": "^0.1.14",
"zhi-fetch-middleware": "^0.2.16",
"zhi-github-middleware": "^0.1.17",
"zhi-lib-base": "^0.4.4",
"zhi-notion-markdown": "^0.1.1",
"zhi-siyuan-api": "^2.0.5",
"zhi-xmlrpc-middleware": "^0.4.9"
"zhi-notion-markdown": "^0.1.2",
"zhi-siyuan-api": "^2.0.10",
"zhi-xmlrpc-middleware": "^0.4.11"
}
}
Loading

0 comments on commit 25be93a

Please sign in to comment.