Skip to content

Frontend hook tests failing (useBlockCheckEnhanced, useNotifications) #312

@Mosas2000

Description

@Mosas2000

Problem

React hook tests are failing with assertion errors.

Affected Tests

useBlockCheckEnhanced.test.js

  • cancels in-flight requests on reset - expected 1 not to be 1

useNotifications.test.js

  • markAllRead persists to localStorage - expected null to be truthy

Errors

AssertionError: expected 1 not to be 1 // Object.is equality
AssertionError: expected null to be truthy

Solution

  • Review useBlockCheckEnhanced reset logic and fix test or implementation
  • Review useNotifications localStorage persistence and fix test or implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions