L-Sun
2025-01-19 08:35:02 +00:00
parent 9d61b41c05
commit 6ba802fb17
13 changed files with 224 additions and 8 deletions

View File

@@ -40,6 +40,7 @@
"!dist/__tests__"
],
"devDependencies": {
"@vanilla-extract/vite-plugin": "^4.0.19",
"vitest": "^3.0.0"
},
"version": "0.19.0"

View File

@@ -77,6 +77,7 @@ async function createEditor(collection: TestWorkspace, mode: DocMode = 'page') {
app.style.width = '100%';
app.style.height = '1280px';
app.style.overflowY = 'auto';
document.body.append(app);
await editor.updateComplete;

View File

@@ -1,6 +1,7 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import { defineConfig } from 'vitest/config';
export default defineConfig(_configEnv =>
@@ -14,6 +15,7 @@ export default defineConfig(_configEnv =>
target: 'es2022',
},
},
plugins: [vanillaExtractPlugin()],
test: {
include: ['src/__tests__/**/*.spec.ts'],
browser: {