GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — waveform-sounds-react/vitest.config.ts at main · arraypress/waveform-sounds-react

Expand file tree

/

vitest.config.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
28 lines (27 loc) · 1023 Bytes
/

vitest.config.ts

Copy path

File metadata and controls

28 lines (27 loc) · 1023 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.