Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.15 KB

File metadata and controls

73 lines (52 loc) · 1.15 KB

Testing Guide

This project supports two testing paths: main (default) and next.

Unified Test Command

You can run all tests (build, source, package, browser) with a single command:

Main Version:

npm run test

Next Version:

npm run test -- next

Running Tests Manually

Source Tests

Run tests against the source code (src/).

Main Version:

npm run test:source

Next Version:

npm run test:source -- next

Note: The -- separator is important to pass arguments to the script.

Package Tests

Run tests against the built package (dist/).

Main Version:

npm run test:package

Next Version:

npm run test:package -- next

Browser Tests

Run regression tests in a browser environment using Playwright.

Main Version:

npm run test:browser

Next Version:

REF_VERSION=next npm run test:browser

CI/CD (GitHub Actions)

For 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