Skip to content
Skills Library
Programming · Testing

netjes-verification

/netjes-verification

Use whenever a Netjes change has to be proven to work, before calling a branch done, before a merge, or after merging several branches together. Lists the suites, the end-to-end rules, the image and package checks, and how to treat a flaky test.

Repository
netjes ↗
Licence
MIT
Last repository change
09.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use whenever a Netjes change has to be proven to work, before calling a branch done, before a merge, or after merging several branches together. Lists the suites, the end-to-end rules, the image and package checks, and how to treat a flaky test.

Original author description

Use whenever a Netjes change has to be proven to work, before calling a branch done, before a merge, or after merging several branches together. Lists the suites, the end-to-end rules, the image and package checks, and how to treat a flaky test.

How it works

  1. The gate
  2. End-to-end rules
  3. Infrastructure changes
  4. Proving a fix, not just a pass
  5. A test that fails sometimes
Original SKILL.md headings · 55 lines, 1,310 words
SKILL.md preview
---
name: netjes-verification
description: Use whenever a Netjes change has to be proven to work, before calling a branch done, before a merge, or after merging several branches together. Lists the suites, the end-to-end rules, the image and package checks, and how to treat a flaky test.
---

# Proving a Netjes change works

Evidence beats memory. A branch is done when these pass on its final commit and the output shows it.

## The gate

Run what the change touches; before a merge to `main`, run all of it.

| Check | Command | Notes |
|---|---|---|
| Install and build | `npm ci && npm run build` | Builds the package's `dist/`, which the examples and their tests import, then the examples' production builds. Needed before the other suites after any change in `packages/netjes`. |
| .NET | `dotnet test Netjes.slnx -c Release` | Netjes.Tests, Blog.Tests and TaskBoard.Tests, and it compiles the examples and the benchmark app. TaskBoard needs Docker (Testcontainers), and so do the tests in Netjes.Tests of the template's and the examples' production images and of the template's Compose files; the tests that need it carry `[Trait("Category", "Docker")]`, which `--filter-not-trait Category=Docker` leaves out, as CI does on macOS and Windows. TaskBoard's `SidecarCrashTests` needs the production build (`npm run build`) and `pgrep`, so it runs on Linux and macOS and is skipped elsewhere; it listens on a free port or `TASKBOARD_TEST_PORT`. Report the total, failed and skipped counts. |
| JS | `npm test` | The package and both examples. |
| Types | `npm run typecheck` | Strict TypeScript in every workspace, and in `scripts/` from its JSDoc types. |
| Generated types | `npx netjes generate --check` in each example | Fails when `generated/netjes.ts` is stale. The golden files (typegen, the template's `packages/netjes/template/generated/netjes.ts`, the client-render shell in `packages/netjes/test/fixtures/client-render/shell.html`, and the public API listings in `tests/Netjes.Tests/PublicApi/`) fail their tests when stale; `UPDATE_GOLDEN=1` rewrites them. |
| Docs | `npm run docs:check` | Fails when `llms.txt` or `llms-full.txt` no longer match the docs, or when a link in a tracked Markdown file points at a file, folder or heading that is not there, or at a folder that holds a `README.md` instead of at that file. |
| Blog end to end | `cd examples/Blog && CI=1 npm run test:e2e` | Dev, production and base-path servers, a production server with no sidecar ready (the client-render fallback), and a `netjes export` of the production build served from its files. |
| TaskBoard end to end | `cd examples/TaskBoard && CI=1 npm run test:e2e` | Starts and removes a throwaway Postgres (8432, or `E2E_DB_PORT`). |
| Benchmark harness | `cd bench/netjes && npm test && npm run typecheck` | The load generator's tests and its JSDoc type check; `bench/netjes` is not a workspace, so the root commands leave it out. `BENCH_TEST_PORT_BASE` puts its test servers on fixed ports. |
| Packages | `scripts/check-packages.sh` | Packs both packages, scaffolds an app from them in a temporary folder, outside the repository's `global.json`, then runs its Vitest and C# tests, type-checks it (also under the flags of create-vite's React-TS template, and with `noPropertyAccessFromIndexSignature` added) and checks that the typecheck covers every TypeScript file, installs the example page package from its own packed halves (`examples/HelpCenter`, a tarball and a NuGet package) and mounts it at `/help`, publishes and serves it (port 5399, or `CHECK_PACKAGES_PORT`), and runs its Playwright suite (ports 5396, 5397 and 5398, or `CHECK_PACKAGES_E2E_DEV_PORT`, `CHECK_PACKAGES_E2E_PROD_PORT` and `CHECK_PACKAGES_E2E_VITE_PORT`, which it passes to the app as `E2E_DEV_PORT` and the rest; it installs Chromium with `PLAYWRIGHT_SKIP_BROWSER_GC=1 npx playwright install chromium`, which leaves the cache's other browsers in place, and adds `--with-deps` only when `CI` is set: on Linux outside CI, run `npx playwright install-deps chromium` once first). When it ends, it stops the published app it started, by its PID. |
| Script tests | `node --test scripts/test/*.test.mjs` | The checks the release workflow runs before it publishes and the `links` command that moves the package READMEs' links to the tag (`scripts/release.mjs`), the tests of the `llms.txt` generator and the link checker, the docs checks (both decision indexes, the getting-started guide's TypeScript configs, every guide in exactly one group of the docs index, the guides in the index's order in `SECTIONS` and in any line that links four or more, no `;` or lone `#` in a Mermaid sequence diagram), the check that every text file has LF line endings, and the check that the package check's browser install removes no other browser. `npm test` runs them too. |

CI (`.github/workflows/ci.yml`) runs the whole gate on every pull request and push to `main`, in parallel jobs: `build-and-test`, `e2e (Blog)`, `e2e (TaskBoard)` and `packages` on Linux, and `build-and-test (macos-latest)` and `build-and-test (windows-latest)`, which run the build, the type checks, `npm test`, the generated-types and docs checks and the .NET tests without the Docker ones. A failed end-to-end job uploads its Playwright report and traces as an artifact. Run what the change touches locally first; CI is the record that the whole gate passed.

## End-to-end rules

- Outside CI the configs reuse any server that is already listening, so two runs on the same ports would test each other's code. `CI=1` always starts fresh servers. To run several suites at once, give each run its own checkout (a run builds into `dist/`, `obj/` and the Vite caches under `node_modules/`, and `scripts/check-packages.sh` empties and rebuilds `packages/netjes/dist/`, which every suite imports) and its own ports: `E2E_DEV_PORT`, `E2E_PROD_PORT`, `E2E_VITE_PORT`, `E2E_BASE_PORT`, `E2E_BASE_VITE_PORT`, `E2E_FALLBACK_PORT` (default: one above `E2E_BASE_PORT`) and `E2E_EXPORT_PORT` (default: any free port) for Blog, `E2E_DEV_PORT`, `E2E_PROD_PORT`, `E2E_VITE_PORT` and `E2E_DB_PORT` for TaskBoard, and `CHECK_PACKAGES_PORT`, `CHECK_PACKAGES_E2E_DEV_PORT`, `CHECK_PACKAGES_E2E_PROD_PORT` and `CHECK_PACKAGES_E2E_VITE_PORT` for `scripts/check-packages.sh`. The throwaway Postgres is the container `taskboard-e2e-db-<E2E_DB_PORT>` (`taskboard-e2e-db` on the default 8432), removed when the run ends.
- Before a run, check that its ports are free: `ss -ltn | grep -E ':(5090|5091|5092|5093|5190|5192|5396|5397|5398|5399|8090|8091|8190|8432)\b'` for the defaults.
- The suites need Chromium once: `npx playwright install chromium`, run in the checkout. An install by another Playwright version (an `npx playwright` outside any checkout, or another project's) removes every browser in the shared cache that no Playwright it knows of still uses, and it knows only the folders that ran an install and are still there, so a Chromium installed from a worktree can go once that worktree is removed. `browserType.launch: Executable doesn't exist` when a suite starts means the Chromium of the lockfile's Playwright is missing: install it again; it is not a failure of the change.

## Infrastructure changes

A change to a `Dockerfile`, a compose file or `.dockerignore` needs a real image build. Build with a throwaway tag, run it on a free port, request a page, and remove the image afterwards:

```bash
docker build -f examples/Blog/Dockerfile -t netjes-check-blog .
docker run -d --rm -p 127.0.0.1:20581:8080 netjes-check-blog
curl -sI http://127.0.0.1:20581/
docker rmi -f netjes-check-blog
```

Validate a compose file with `docker compose -f … config`. A running container isn't proof that it is healthy: check the health endpoint (`/healthz`).

## Proving a fix, not just a pass

- Revert the fix, keep the test, and watch the test fail. Restore the fix and watch it pass. A test that passes either way proves nothing.
- For a security fix, also try the original attack and its variants against the fixed code.

## A test that fails sometimes

Don't rerun it until it passes. Run it alone, then under load (the full suite, or several runs in parallel), and find the race. Common causes are a shared static cache, a process still exiting, a port or file left behind, or a time budget in a test. Fix the cause, and make the test deterministic: count work instead of measuring time, and wait on a signal instead of sleeping.

Rule out the host first. A Playwright trace in which Chromium aborts requests with `net::ERR_NETWORK_CHANGED` means the host's network changed during the run (a container starting or stopping, a VPN or Wi-Fi change); it is not a race in Netjes. In development the aborted requests are often the page's Vite modules, so the page never hydrates and the test times out waiting for something the client would have done.

Versions

The database has no other skills named netjes-verification.

Database snapshot: 13.11.2026 · package version b71df78a9fa3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100netjes-contributing
    Use when making any change to Netjes itself (the C# library, the npm package, the CLI, the template or the examples), from creating the branch to asking for a merge. Covers branch and worktree setup, test-first work, docs, ADRs and commit rules.
  • 100netjes
    Use when building or changing a Netjes app (React pages in app/ served by ASP.NET Core): adding pages, layouts, C# loaders, server actions, JSON endpoints, caching, streaming, tests or deployment. Covers the app/ and Features/ conventions, generated/netjes.ts, and the commands that check the work.
  • 100v1-e2e-testing
    Use when implementing or debugging browser end-to-end tests, especially Playwright or flaky tests. Triggers on "E2E test", "Playwright", or "flaky browser test".
  • 90e2e-testing-patterns
    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.
  • 100e2e-testing-patterns
    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.
  • 100e2e-testing-patterns
    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.