- Update all submodule URLs from gitea.centraal.wbd-rd.nl to gitea.wbd-rd.nl - Add settler as proper submodule in .gitmodules - Add agent skills, function anchors, decisions, and improvements - Add Docker configuration and scripts - Add manuals and third_party docs - Update .gitignore with secrets and build artifacts - Remove stale .tgz build artifact Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
paths
| paths | |
|---|---|
|
Testing Rules
3-Tier Test Structure
Every node must have:
test/basic/*.test.js— Unit tests for individual functionstest/integration/*.test.js— Node interaction and message passing teststest/edge/*.test.js— Edge cases, error conditions, boundary valuestest/helpers/(optional) — Shared test utilities for this node
Test Runner
node --test nodes/<nodeName>/test/basic/*.test.js
node --test nodes/<nodeName>/test/integration/*.test.js
node --test nodes/<nodeName>/test/edge/*.test.js
Test Requirements
- Every behavior change requires a failing-before/passing-after test
- Tests must validate against function anchor expected behavior
- Example flows (
examples/) must stay in sync with implementation
Example Flows
Each node must maintain:
examples/README.mdexamples/basic.flow.jsonexamples/integration.flow.jsonexamples/edge.flow.json
No Node-RED Runtime in Unit Tests
Basic tests should test specificClass domain logic without requiring a running Node-RED instance.