Skip to content

Commit f7044f2

Browse files
authored
feat: Create CachedBundleContentBanner Component (#3632)
1 parent 6500fd6 commit f7044f2

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { render, screen } from '@testing-library/react'
2+
3+
import { CachedBundleContentBanner } from './CachedBundleContentBanner'
4+
5+
describe('CachedBundleContentBanner', () => {
6+
it('should render the banner', () => {
7+
render(<CachedBundleContentBanner />)
8+
9+
const banner = screen.getByText(
10+
'The reported bundle size includes cached data from previous commits'
11+
)
12+
expect(banner).toBeInTheDocument()
13+
})
14+
})
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Alert } from 'ui/Alert'
2+
3+
export const CachedBundleContentBanner = () => {
4+
return (
5+
<Alert variant="info">
6+
<Alert.Description>
7+
The reported bundle size includes cached data from previous commits
8+
</Alert.Description>
9+
</Alert>
10+
)
11+
}

0 commit comments

Comments
 (0)