GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NaultCore/docs/unit-test-migration.md at main · OpenRai/NaultCore

Expand file tree

/

unit-test-migration.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
41 lines (30 loc) · 1.36 KB
/

unit-test-migration.md

Copy path

File metadata and controls

41 lines (30 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Unit Test Architecture

NaultCore runs Angular unit tests with Vitest. The test targets keep the NaultCore and NanoNym feature profiles separate, while Playwright covers browser-level workflows.

Inventory contract

The include arrays in angular.json are the active-unit-test inventory. pnpm run verify:test-inventory verifies that every spec file containing an active it(...) or test(...) declaration belongs to one of those targets. Skipped or archived placeholders are intentionally excluded.

Audit the active inventory with an anchored declaration search so skipped tests are not counted as active:

for file in $(rg --files src -g '*.spec.ts'); do
  rg -q '^\s*(it|test)\s*\(' "$file" && printf '%s\n' "$file"
done

Local validation

Run the complete unit-test path with one command:

source ~/.nvm/nvm.sh
nvm exec pnpm test

This runs the NaultCore Vitest target, the NanoNym-enabled Vitest target, and the inventory guard. Run Playwright separately for browser-level validation as documented in Testing.

Retirement record

The legacy browser harness and its assertion framework were removed after the active inventory was represented by Vitest and both feature profiles had local unit and browser-level validation. New tests should use Vitest APIs such as vi.fn, vi.spyOn, fake timers, and expect.objectContaining.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.