CI / Lint (push) Canceled after 0s
CI / Build Test (stage-web) (push) Canceled after 0s
CI / Build Test (ui-loading-screens) (push) Canceled after 0s
CI / Build Test (ui-transitions) (push) Canceled after 0s
CI / Unit Test (push) Canceled after 0s
CI / Type Check (push) Canceled after 0s
CI / Check Provenance (push) Canceled after 0s
Sync Labels / sync-labels (push) Successful in 1m43s
- Remove stage-tamagotchi, stage-pocket, server, and engine workspaces with their workflows, addons, and docs - Switch the toolchain from pnpm to bun, replace lockfiles with bun.lock - Rewrite remaining product references to Moeka
34 lines
907 B
TypeScript
34 lines
907 B
TypeScript
import { join } from 'node:path'
|
|
|
|
import fakemic, { web } from '@proj-airi/vitest-plugin-fakemic'
|
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
fakemic({
|
|
name: 'audio-web',
|
|
include: ['cases/**/*.audio.test.ts', 'cases/**/*.audio.web.test.ts'],
|
|
runtime: web({
|
|
name: 'web',
|
|
prepare: new URL('./src/runtimes/prepare-web.ts', import.meta.url).href,
|
|
url: 'http://127.0.0.1:4173/',
|
|
context: { permissions: ['microphone'] },
|
|
preview: {
|
|
configFile: join(import.meta.dirname, '../../apps/stage-web/vite.config.ts'),
|
|
root: join(import.meta.dirname, '../../apps/stage-web'),
|
|
},
|
|
}),
|
|
}),
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: 'unit',
|
|
include: ['src/**/*.test.ts'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
})
|