Compare commits

3 Commits

Author SHA1 Message Date
严浩
12527deeaa test(e2e): 添加 AppLayout 组件的测试用例 2025-09-09 22:35:19 +08:00
严浩
b9a03fce1c build: 移除 package.json 中的 packageManager 字段 2025-09-09 22:22:36 +08:00
严浩
5d36dad7e0 build(deps): 使用 rolldown-vite 包 2025-09-09 22:17:18 +08:00
4 changed files with 12 additions and 9333 deletions

View File

@@ -50,4 +50,11 @@ test.describe('Vue App', () => {
await expect(button).toHaveText('Name from API is: Unknown')
})
test('app-layout is present', async ({ page }) => {
await page.goto('/')
const appLayout = page.locator('.app-layout')
await expect(appLayout).toBeVisible()
await expect(appLayout).toContainText('AppLayout')
})
})

View File

@@ -1,5 +1,4 @@
{
"packageManager": "pnpm@10.15.1",
"name": "vue-ts-example-2025",
"version": "0.0.0",
"private": true,
@@ -49,7 +48,9 @@
]
},
"pnpm": {
"overrides": {}
"overrides": {
"vite": "$vite"
}
},
"dependencies": {
"@commitlint/cli": "^19.8.1",
@@ -107,7 +108,7 @@
"unplugin-vue-components": "^29.0.0",
"unplugin-vue-markdown": "^29.1.0",
"unplugin-vue-router": "^0.15.0",
"vite": "^7.1.5",
"vite": "npm:rolldown-vite@^7.1.8",
"vite-plugin-checker": "^0.10.3",
"vite-plugin-fake-server": "^2.2.0",
"vite-plugin-image-optimizer": "^2.0.2",

9329
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
<script setup lang="ts"></script>
<template>
<div>
<div class="app-layout">
<div>AppLayout</div>
<router-view />
</div>