1
0
mirror of synced 2026-03-23 02:58:34 +08:00

test: 完善测试用例

This commit is contained in:
roymondchen
2024-05-09 20:49:54 +08:00
parent ff60d0238b
commit 831204663a
8 changed files with 88 additions and 59 deletions

View File

@@ -9,22 +9,11 @@ export default defineConfig({
plugins: [Vue()],
test: {
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'magic-admin/**',
],
include: [
'./packages/editor/tests/**',
'./packages/form/tests/unit/utils/**',
'./packages/stage/tests/**',
'./packages/utils/tests/**',
'./packages/data-source/tests/**',
'./packages/dep/tests/**',
],
include: ['./packages/*/tests/**'],
environment: 'jsdom',
coverage: {
extension: ['.ts', '.vue'],
},
},
resolve: {
@@ -32,12 +21,6 @@ export default defineConfig({
'@editor': r('./packages/editor/src'),
'@form': r('./packages/form/src'),
'@data-source': r('./packages/data-source/src'),
'@tmagic/core': r('./packages/core/src'),
'@tmagic/utils': r('./packages/utils/src'),
'@tmagic/editor': r('./packages/editor/src'),
'@tmagic/stage': r('./packages/stage/src'),
'@tmagic/schema': r('./packages/schema/src'),
'@tmagic/data-source': r('./packages/data-source/src'),
},
},
});