Skip to content

Tests: refresh the outdated test suite #579

Description

@kalwalt

Summary

The current test suite (Karma + Jasmine, run via npm run test:all across the min/debug/wasm/simd/es6 targets) is outdated and doesn't reflect the current API and build matrix. Refresh it so the tests are meaningful and green against the latest library.

Motivation

  • The library has evolved (TS sources, ES6 builds, the new experimental Node.js build) but the specs haven't kept pace.
  • Outdated/irrelevant tests reduce trust in CI and hide real regressions.

Scope / tasks

  • Audit existing specs vs. the current public API; remove/replace dead or irrelevant tests.
  • Ensure each build target in test:all (min, debug, wasm, simd, embed-es6, es6, es6-simd) has at least smoke coverage that actually exercises NFT load + process().
  • Refresh fixtures (camera params, NFT dataset, test image) to match the examples.
  • Confirm the Karma + Jasmine config is current (versions bumped in the recent dep work) and stable headless/CI.
  • Make npm test reliably green locally and in CI.

Notes

  • Related: coverage reporting tracked separately (see the Codecov issue).
  • The experimental Node.js build (Feature node libs #140) is currently untested — node-specific tests can be folded in here or split out later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions