Skip to content

Commit 05ccbe8

Browse files
committed
fix: remove unused components
1 parent 256275c commit 05ccbe8

File tree

5 files changed

+0
-101
lines changed

5 files changed

+0
-101
lines changed

app/components/AuthButton.client.vue

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/components/AuthButton.server.vue

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/components/JsrBadge.vue

Lines changed: 0 additions & 25 deletions
This file was deleted.

test/nuxt/a11y.spec.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ import {
8383
FilterPanel,
8484
HeaderAccountMenu,
8585
InstallCommandTerminal,
86-
JsrBadge,
8786
LicenseDisplay,
8887
LoadingSpinner,
8988
MarkdownText,
@@ -116,14 +115,12 @@ import {
116115
SearchBox,
117116
SearchSuggestionCard,
118117
Toggle,
119-
UserCombobox,
120118
VersionSelector,
121119
ViewModeToggle,
122120
} from '#components'
123121

124122
// Server variant components must be imported directly to test the server-side render
125123
// The #components import automatically provides the client variant
126-
import AuthButtonServer from '~/components/AuthButton.server.vue'
127124
import HeaderAccountMenuServer from '~/components/HeaderAccountMenu.server.vue'
128125
import ToggleServer from '~/components/Toggle.server.vue'
129126

@@ -251,24 +248,6 @@ describe('component accessibility audits', () => {
251248
})
252249
})
253250

254-
describe('JsrBadge', () => {
255-
it('should have no accessibility violations', async () => {
256-
const component = await mountSuspended(JsrBadge, {
257-
props: { url: 'https://jsr.io/@std/fs' },
258-
})
259-
const results = await runAxe(component)
260-
expect(results.violations).toEqual([])
261-
})
262-
263-
it('should have no accessibility violations in compact mode', async () => {
264-
const component = await mountSuspended(JsrBadge, {
265-
props: { url: 'https://jsr.io/@std/fs', compact: true },
266-
})
267-
const results = await runAxe(component)
268-
expect(results.violations).toEqual([])
269-
})
270-
})
271-
272251
describe('ProvenanceBadge', () => {
273252
it('should have no accessibility violations without link', async () => {
274253
const component = await mountSuspended(ProvenanceBadge)
@@ -722,31 +701,6 @@ describe('component accessibility audits', () => {
722701
})
723702
})
724703

725-
describe('UserCombobox', () => {
726-
it('should have no accessibility violations', async () => {
727-
const component = await mountSuspended(UserCombobox, {
728-
props: {
729-
suggestions: ['user1', 'user2', 'user3'],
730-
label: 'Select a user',
731-
},
732-
})
733-
const results = await runAxe(component)
734-
expect(results.violations).toEqual([])
735-
})
736-
737-
it('should have no accessibility violations when disabled', async () => {
738-
const component = await mountSuspended(UserCombobox, {
739-
props: {
740-
suggestions: ['user1', 'user2'],
741-
disabled: true,
742-
label: 'Select a user',
743-
},
744-
})
745-
const results = await runAxe(component)
746-
expect(results.violations).toEqual([])
747-
})
748-
})
749-
750704
describe('ConnectorModal', () => {
751705
it('should have no accessibility violations when closed', async () => {
752706
const component = await mountSuspended(ConnectorModal, {

test/unit/a11y-component-coverage.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ const SKIPPED_COMPONENTS: Record<string, string> = {
2727
'OgImage/Package.vue': 'OG Image component - server-rendered image, not interactive UI',
2828

2929
// Client-only components with complex dependencies
30-
'AuthButton.client.vue':
31-
'Client component with AuthModal dependency - AuthButton.server.vue tested',
3230
'AuthModal.client.vue': 'Complex auth modal with navigation - requires full app context',
3331

3432
// Complex components requiring full app context or specific runtime conditions

0 commit comments

Comments
 (0)