GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — waveform-sounds-react/vitest.config.ts at main · arraypress/waveform-sounds-react Expand file tree/ Copy pathvitest.config.tsMore file actions 28 lines (27 loc) · 1023 Bytes / Copy pathvitest.config.tsFile metadata and controls28 lines (27 loc) · 1023 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 /** * vitest.config.ts * ---------------- * * Vitest configuration for the React wrapper. Uses `jsdom` so we get a * fake DOM to mount React components into. * * Two kinds of test file: * - `WaveformSounds.test.tsx` / `forwarding-drift.test.tsx` mock the * runtime entry (`@arraypress/waveform-sounds/no-autoinit`) at the * module boundary, to assert exactly what the wrapper hands the * constructor and when it constructs / destroys. * - `integration.test.tsx` runs the REAL sounds core (it builds its rows * fine in jsdom) with a stand-in engine passed as `playerClass` — the * real `WaveformPlayer` needs Web Audio / Canvas jsdom lacks. That is * where markup adoption, the `waveformsounds:*` callbacks and the * imperative handle are checked end to end. */ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { include: ['test/**/*.test.{ts,tsx}'], environment: 'jsdom', globals: false, setupFiles: ['./test/setup.ts'], }, }); |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |