bascik-testing
Installation
SKILL.md
Testing and Debugging Bascik Sites
Requires the bascik skill for project basics and its scripts/verify.mjs for the check and lint loop.
Verification ladder
Run cheapest first and stop at the first failure:
npx bascik --check: project checks (config, routes, references) plus, when@bascik/language-serveris installed, the per-file checks (scoping patterns, unclosed tags).node <skills-dir>/bascik/scripts/verify.mjsruns it and also covers component folders outside the project.npx vitest runfor unit tests of pure logic.BASCIK_SITE_URL=https://example.com npx bascik --build, then inspectdist/or runverify.mjs --build.npx playwright testagainst the built site or the dev server.
CI gate: bascik --check && vitest run && bascik --build && playwright test. bascik --check already runs the per-file checks, so there is no separate linter step. Add bascik-language-server --check <dir> only for a component folder outside the project.
Unit tests: extract pure logic
Component scripts are IIFEs and cannot be imported. Test logic, not DOM wiring: