Test suite broken: vitest missing from dependencies #27

Closed
opened 2026-03-09 00:39:29 +00:00 by ghost · 0 comments
ghost commented 2026-03-09 00:39:29 +00:00 (Migrated from github.com)

Description

The test suite cannot run because vitest is referenced in package.json scripts but NOT declared in devDependencies.

Steps to reproduce

  1. Clone the repo
  2. Run pnpm install
  3. Run pnpm test

Expected: Tests run
Actual: Error - Cannot find package vitest

Impact

  • CI passes but tests dont actually run
  • Unit tests cannot be verified
  • Prevents proper regression testing

Suggested fix

Add vitest to devDependencies in package.json

Additional notes

Also missing (causing test failures):

  • react, react-dom (should be peerDependencies)
  • @mui/material
  • react-router-dom
  • @testing-library/react
  • @testing-library/user-event
  • @testing-library/jest-dom
## Description The test suite cannot run because vitest is referenced in package.json scripts but NOT declared in devDependencies. ## Steps to reproduce 1. Clone the repo 2. Run pnpm install 3. Run pnpm test Expected: Tests run Actual: Error - Cannot find package vitest ## Impact - CI passes but tests dont actually run - Unit tests cannot be verified - Prevents proper regression testing ## Suggested fix Add vitest to devDependencies in package.json ## Additional notes Also missing (causing test failures): - react, react-dom (should be peerDependencies) - @mui/material - react-router-dom - @testing-library/react - @testing-library/user-event - @testing-library/jest-dom
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privilegedescalation/headlamp-polaris-plugin#27