Skip to content

[Bug] CacheManager.test.js fails due to missing fake-indexeddb dependency #6460

@eyeaadil

Description

@eyeaadil

Describe the bug

Running npm test on a fresh install fails because the planet/js/tests/CacheManager.test.js suite throws a Cannot find module error for fake-indexeddb/auto.

The fake-indexeddb database mocking package is require()'d by the test file, but it is missing from the project's devDependencies in package.json.

Steps to reproduce

  1. Clone the repository and run npm ci
  2. Run the specific test: npx jest planet/js/__tests__/CacheManager.test.js
  3. See the error:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions