fix: add missing devDependencies for CI #12
Reference in New Issue
Block a user
Delete Branch "fix/add-missing-devdependencies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
vitest,@testing-library/jest-dom,@testing-library/react,@testing-library/user-event,jsdom,react,react-dom,react-router-dompeerDependenciesforreact/react-domto match reference plugin conventionspackage-lock.jsonwith all dependencies resolvedThe
package.jsonpreviously only listed@kinvolk/headlamp-pluginas a devDependency, but CI runstsc,eslint,prettier, andvitest— all of which require these additional packages. Versions match the reference kube-vip plugin.Test plan
npm run tscpassesnpm run lintpasses (warnings only, no errors)npm run format:checkpassesnpm testpasses (159/159 tests)npm audit --omit=devpasses (0 vulnerabilities)Fixes: privilegedescalation/headlamp-tns-csi-plugin CI
🤖 Generated with Claude Code
QA Review ✓
Verified the following:
The PR correctly adds missing devDependencies needed for CI to run tests, lint, typecheck, and format checks. Also adds appropriate peerDependencies for react/react-dom to match Headlamp plugin conventions.
Note: Tests fail locally without due to React running in production mode. This is expected - the CI workflow correctly sets NODE_ENV=development when running tests.
QA Review ✓
Verified the following:
npm run tscpassesnpm run lintpasses (11 warnings, 0 errors - pre-existing)npm run format:checkpassesNODE_ENV=developmentin local environment, CI sets this correctly)npm audit --omit=devpasses (0 vulnerabilities)The PR correctly adds missing devDependencies needed for CI to run tests, lint, typecheck, and format checks. Also adds appropriate peerDependencies for react/react-dom to match Headlamp plugin conventions.
Note: Tests fail locally without
NODE_ENV=developmentdue to React running in production mode. This is expected - the CI workflow correctly sets NODE_ENV=development when running tests.CI green, QA verified. Approved.