Skip to content

test: 7 pre-existing test failures in preprocessors (likely upgrade drift) #9

Description

@RickCogley

Background

Discovered while implementing the devkit-baseline PR (#8): hibana's test suite has 7 failing tests on main of v1.3.0:

addLanguageAlternate - adds translation as original              FAILED (0ms)
addLanguageAlternate - adds translation as alternate             FAILED (0ms)
languageAlternatesSchema - links pages by ID                     FAILED (0ms)
languageAlternatesSchema - handles multiple schema fields        FAILED (0ms)
markdownMetadata - extracts excerpt from content                 FAILED (2ms)
markdownMetadata - calculates elapsed days                       FAILED (0ms)
markdownMetadata - respects custom excerpt marker                FAILED (0ms)

FAILED | 13 passed | 7 failed

All seven fail with AssertionError: Values are not equal — value mismatches, not crashes.

Likely cause

Recent upgrades. The user confirmed they "did some upgrades in hibana" recently and were not aware tests were failing. The two affected files are:

  • preprocessors/__tests__/language_alternates_schema.test.ts (4 failing)
  • preprocessors/__tests__/markdown_metadata.test.ts (3 failing)

Both files test preprocessors — the recent upgrades probably changed expected output shape (Lume API drift, schema field changes, frontmatter handling) and the tests' expected values weren't updated to match.

Why this isn't in the baseline-adoption PR

The baseline PR adds CI but deliberately does not run deno test in the CI workflow, so it can land without being blocked by these pre-existing failures. Once these are fixed, deno task test should be added to ci.yml (it's currently fmt + lint + check only — see the comment in .github/workflows/ci.yml).

Acceptance

  • All 20 tests pass on deno test --allow-read --unstable-temporal
  • Add deno task test step to .github/workflows/ci.yml (re-enable the test gate)
  • Bump version (probably patch, e.g. v1.3.1) and cut release

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions