Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 1.63 KB

File metadata and controls

70 lines (55 loc) · 1.63 KB

Issue #19665 - Test Coverage Verification

Status: Already Resolved

All test files requested in issue #19665 already exist in web/src/config/cards/__tests__/.

Test Files Created (31 total)

Games (19 files)

  • ✅ kube-bert.test.ts
  • ✅ kube-chess.test.ts
  • ✅ kube-doom.test.ts
  • ✅ kube-galaga.test.ts
  • ✅ kube-kart.test.ts
  • ✅ kube-kong.test.ts
  • ✅ kube-man.test.ts
  • ✅ kube-pong.test.ts
  • ✅ kube-snake.test.ts
  • ✅ game-2048.test.ts
  • ✅ pod-brothers.test.ts
  • ✅ pod-crosser.test.ts
  • ✅ pod-pitfall.test.ts
  • ✅ pod-sweeper.test.ts
  • ✅ node-invaders.test.ts
  • ✅ match-game.test.ts
  • ✅ missile-command.test.ts
  • ✅ solitaire.test.ts
  • ✅ sudoku-game.test.ts
  • ✅ container-tetris.test.ts

Embedded Content (6 files)

  • ✅ iframe-embed.test.ts
  • ✅ mobile-browser.test.ts
  • ✅ rss-feed.test.ts
  • ✅ weather.test.ts
  • ✅ stock-market-ticker.test.ts
  • ✅ github-activity.test.ts

Utilities (6 files)

  • ✅ dynamic-card.test.ts
  • ✅ kubectl.test.ts
  • ✅ kubedle.test.ts
  • ✅ network-utils.test.ts
  • ✅ upgrade-status.test.ts
  • ✅ index.test.ts

Test Pattern

All tests follow the standard pattern using registerCardConfigTest():

import * as moduleExports from '../<card-name>'
import { registerCardConfigTest } from './card-config-test-helpers'

registerCardConfigTest('<card-name>', moduleExports)

This provides:

  • Configuration schema validation
  • Required field presence checks
  • Export consistency verification
  • Registry integration tests

History

Tests were added in PR #16112 (committed 2026-05-30).

Recommendation

Close issue #19665 as already resolved.