Skip to content
Closed
Next Next commit
Move threat components from jetpack-components to jetpack-scan
changelog

changelog

Update changelog

Update changelog

changelog
  • Loading branch information
nateweller committed Mar 29, 2025
commit 37be743a8a56efa1b188b8dffff32fb4dd29a756
63 changes: 55 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions projects/js-packages/scan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
"@wordpress/i18n": "5.19.0",
"@wordpress/icons": "10.19.0",
"@wordpress/url": "4.19.0",
"@automattic/jetpack-components": "workspace:*",
"@wordpress/components": "29.3.0",
"@wordpress/dataviews": "4.13.0",
"@wordpress/date": "5.17.0",
"@wordpress/icons": "10.17.0",
"debug": "4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { render, screen } from '@testing-library/react';
import ThreatSeverityBadge from '../index.js';

describe( 'ThreatSeverityBadge', () => {
it( 'renders the correct severity label', () => {
render( <ThreatSeverityBadge severity={ 4 } /> );
expect( screen.getByText( 'High' ) ).toBeInTheDocument();
} );
} );