a homebrewed DnD campaign based in the Honkai: Star Rail universe
hsr honkaistarrail dnd
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

setup vitest for browser mode

+80 -7
+1
app/package.json
··· 53 53 "zod": "catalog:app" 54 54 }, 55 55 "devDependencies": { 56 + "@playwright/test": "catalog:voidzero", 56 57 "@starlight/storybook-utils": "link:../packages/storybook-utils", 57 58 "@sveltejs/adapter-cloudflare": "catalog:svelte", 58 59 "@sveltejs/kit": "catalog:svelte",
+6
app/playwright.config.ts
··· 1 + import { defineConfig } from '@playwright/test' 2 + 3 + export default defineConfig({ 4 + webServer: { command: 'npm run build && npm run preview', port: 4173 }, 5 + testMatch: '**/*.e2e.ts', 6 + })
+28 -1
app/vite.config.ts
··· 1 1 import { sveltekit } from '@sveltejs/kit/vite' 2 2 import tailwindcss from '@tailwindcss/vite' 3 + import { playwright } from '@vitest/browser-playwright' 4 + import { defineProject } from 'vitest/config' 3 5 import 'dotenv' 4 - import { defineProject } from 'vitest/config' 5 6 6 7 export default defineProject({ 7 8 plugins: [tailwindcss(), sveltekit()], 8 9 server: { 9 10 host: '0.0.0.0', 10 11 allowedHosts: process.env.OAUTH_DOMAIN ? [process.env.OAUTH_DOMAIN] : [], 12 + }, 13 + test: { 14 + projects: [ 15 + { 16 + extends: true, 17 + test: { 18 + name: 'client', 19 + browser: { 20 + enabled: true, 21 + provider: playwright(), 22 + instances: [{ browser: 'chromium', headless: true }], 23 + }, 24 + include: ['src/**/*.svelte.{test,spec}.ts'], 25 + exclude: ['src/lib/server/**'], 26 + }, 27 + }, 28 + { 29 + extends: true, 30 + test: { 31 + name: 'server', 32 + environment: 'node', 33 + include: ['src/**/*.{test,spec}.ts'], 34 + exclude: ['src/**/*.svelte.{test,spec}.ts'], 35 + }, 36 + }, 37 + ], 11 38 }, 12 39 })
+44 -6
pnpm-lock.yaml
··· 162 162 specifier: ^1.4.0 163 163 version: 1.4.0 164 164 voidzero: 165 + '@playwright/test': 166 + specifier: ^1.59.1 167 + version: 1.59.1 165 168 '@vitest/browser-playwright': 166 169 specifier: ^4.1.2 167 170 version: 4.1.2 ··· 351 354 specifier: catalog:app 352 355 version: 4.3.6 353 356 devDependencies: 357 + '@playwright/test': 358 + specifier: catalog:voidzero 359 + version: 1.59.1 354 360 '@starlight/storybook-utils': 355 361 specifier: link:../packages/storybook-utils 356 362 version: link:../packages/storybook-utils ··· 2023 2029 cpu: [x64] 2024 2030 os: [win32] 2025 2031 2026 - '@playwright/test@1.58.2': 2027 - resolution: {integrity: sha512-akea+6bHYBBfA9uQqSYmlJXn61cTa+jbO87xVLCWbTqbWadRVmhxlXATaOjOgcBaWU4ePo0wB41KMFv3o35IXA==} 2032 + '@playwright/test@1.59.1': 2033 + resolution: {integrity: sha512-PG6q63nQg5c9rIi4/Z5lR5IVF7yU5MqmKaPOe0HSc0O2cX1fPi96sUQu5j7eo4gKCkB2AnNGoWt7y4/Xx3Kcqg==} 2028 2034 engines: {node: '>=18'} 2029 2035 hasBin: true 2030 2036 ··· 3880 3886 engines: {node: '>=18'} 3881 3887 hasBin: true 3882 3888 3889 + playwright-core@1.59.1: 3890 + resolution: {integrity: sha512-HBV/RJg81z5BiiZ9yPzIiClYV/QMsDCKUyogwH9p3MCP6IYjUFu/MActgYAvK0oWyV9NlwM3GLBjADyWgydVyg==} 3891 + engines: {node: '>=18'} 3892 + hasBin: true 3893 + 3883 3894 playwright@1.58.2: 3884 3895 resolution: {integrity: sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A==} 3896 + engines: {node: '>=18'} 3897 + hasBin: true 3898 + 3899 + playwright@1.59.1: 3900 + resolution: {integrity: sha512-C8oWjPR3F81yljW9o5OxcWzfh6avkVwDD2VYdwIGqTkl+OGFISgypqzfu7dOe4QNLL2aqcWBmI3PMtLIK233lw==} 3885 3901 engines: {node: '>=18'} 3886 3902 hasBin: true 3887 3903 ··· 5817 5833 '@oxlint/binding-win32-x64-msvc@1.57.0': 5818 5834 optional: true 5819 5835 5820 - '@playwright/test@1.58.2': 5836 + '@playwright/test@1.59.1': 5821 5837 dependencies: 5822 - playwright: 1.58.2 5838 + playwright: 1.59.1 5823 5839 5824 5840 '@polka/url@1.0.0-next.29': {} 5825 5841 ··· 5975 5991 storybook: 10.3.3(@testing-library/dom@10.4.1)(prettier@3.8.1)(react-dom@19.2.4)(react@19.2.4) 5976 5992 optionalDependencies: 5977 5993 '@vitest/browser': 4.1.2(vite@8.0.3)(vitest@4.1.2) 5978 - '@vitest/browser-playwright': 4.1.2(playwright@1.58.2)(vite@8.0.3)(vitest@4.1.2) 5994 + '@vitest/browser-playwright': 4.1.2(playwright@1.59.1)(vite@8.0.3)(vitest@4.1.2) 5979 5995 '@vitest/runner': 4.1.2 5980 5996 vitest: 4.1.2(@opentelemetry/api@1.9.1)(@types/node@25.5.0)(@vitest/browser-playwright@4.1.2)(@vitest/ui@4.1.2)(vite@8.0.3) 5981 5997 transitivePeerDependencies: ··· 6306 6322 - msw 6307 6323 - utf-8-validate 6308 6324 - vite 6325 + 6326 + '@vitest/browser-playwright@4.1.2(playwright@1.59.1)(vite@8.0.3)(vitest@4.1.2)': 6327 + dependencies: 6328 + '@vitest/browser': 4.1.2(vite@8.0.3)(vitest@4.1.2) 6329 + '@vitest/mocker': 4.1.2(vite@8.0.3) 6330 + playwright: 1.59.1 6331 + tinyrainbow: 3.1.0 6332 + vitest: 4.1.2(@opentelemetry/api@1.9.1)(@types/node@25.5.0)(@vitest/browser-playwright@4.1.2)(@vitest/ui@4.1.2)(vite@8.0.3) 6333 + transitivePeerDependencies: 6334 + - bufferutil 6335 + - msw 6336 + - utf-8-validate 6337 + - vite 6338 + optional: true 6309 6339 6310 6340 '@vitest/browser@4.1.2(vite@8.0.3)(vitest@4.1.2)': 6311 6341 dependencies: ··· 7686 7716 7687 7717 playwright-core@1.58.2: {} 7688 7718 7719 + playwright-core@1.59.1: {} 7720 + 7689 7721 playwright@1.58.2: 7690 7722 dependencies: 7691 7723 playwright-core: 1.58.2 7724 + optionalDependencies: 7725 + fsevents: 2.3.2 7726 + 7727 + playwright@1.59.1: 7728 + dependencies: 7729 + playwright-core: 1.59.1 7692 7730 optionalDependencies: 7693 7731 fsevents: 2.3.2 7694 7732 ··· 8327 8365 8328 8366 vitest-browser-svelte@2.1.0(svelte@5.55.0)(vitest@4.1.2): 8329 8367 dependencies: 8330 - '@playwright/test': 1.58.2 8368 + '@playwright/test': 1.59.1 8331 8369 '@testing-library/svelte-core': 1.0.0(svelte@5.55.0) 8332 8370 svelte: 5.55.0 8333 8371 vitest: 4.1.2(@opentelemetry/api@1.9.1)(@types/node@25.5.0)(@vitest/browser-playwright@4.1.2)(@vitest/ui@4.1.2)(vite@8.0.3)
+1
pnpm-workspace.yaml
··· 67 67 tailwindcss: ^4.2.2 68 68 tw-animate-css: ^1.4.0 69 69 voidzero: 70 + '@playwright/test': ^1.59.1 70 71 '@vitest/browser-playwright': ^4.1.2 71 72 '@vitest/coverage-v8': ^4.1.0 72 73 '@vitest/ui': ^4.1.0