Vitest Demo
This demo shows how to use Vitest for testing a yFiles for HTML web application. For interaction with the web browser it uses Playwright.
To run the test:
- Go to the demo's directory
demos-ts/testing/vitest. - Run
npm install. - Run the test with
npm run test. - Run the test UI with
npm run test-ui.
The test is run in Chromium in headless mode.
You can also just start the app and interact with it by running
npm run dev.