This project supports two testing paths: main (default) and next.
You can run all tests (build, source, package, browser) with a single command:
Main Version:
npm run testNext Version:
npm run test -- nextRun tests against the source code (src/).
Main Version:
npm run test:sourceNext Version:
npm run test:source -- nextNote: The
--separator is important to pass arguments to the script.
Run tests against the built package (dist/).
Main Version:
npm run test:packageNext Version:
npm run test:package -- nextRun regression tests in a browser environment using Playwright.
Main Version:
npm run test:browserNext Version:
REF_VERSION=next npm run test:browserFor GitHub Actions, use the REF_VERSION environment variable to configure the browser tests.
- name: Run Browser Tests (Next)
run: npm run test:browser
env:
REF_VERSION: next