[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: clean up vitest output (#738)

authored by

Daniel Roe and committed by
GitHub
9e276c38 e3f6bec9

+27 -6
+1 -1
app/components/Header/AuthModal.client.vue
··· 87 87 {{ $t('auth.modal.what_is_atmosphere') }} 88 88 </summary> 89 89 <div class="mt-3"> 90 - <i18n-t keypath="auth.modal.atmosphere_explanation" tag="p"> 90 + <i18n-t keypath="auth.modal.atmosphere_explanation" tag="p" scope="global"> 91 91 <template #npmx> 92 92 <span class="font-bold">npmx.dev</span> 93 93 </template>
+1 -1
app/components/Header/ConnectorModal.vue
··· 88 88 {{ $t('connector.modal.contributor_badge') }} 89 89 </span> 90 90 <p class="text-sm text-fg-muted"> 91 - <i18n-t keypath="connector.modal.contributor_notice"> 91 + <i18n-t keypath="connector.modal.contributor_notice" scope="global"> 92 92 <template #link> 93 93 <a 94 94 href="https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"
+6 -1
app/components/Package/SkillsModal.vue
··· 95 95 v-if="selectedMethod === 'skills-npm'" 96 96 class="flex items-center justify-between gap-2 px-3 py-2.5 sm:px-4 bg-bg-subtle border border-border rounded-lg mb-5" 97 97 > 98 - <i18n-t keypath="package.skills.compatible_with" tag="span" class="text-sm text-fg-muted"> 98 + <i18n-t 99 + keypath="package.skills.compatible_with" 100 + tag="span" 101 + class="text-sm text-fg-muted" 102 + scope="global" 103 + > 99 104 <template #tool> 100 105 <code class="font-mono text-fg">skills-npm</code> 101 106 </template>
+3 -1
test/nuxt/a11y.spec.ts
··· 1706 1706 describe('Readme', () => { 1707 1707 it('should have no accessibility violations with slot content', async () => { 1708 1708 const component = await mountSuspended(Readme, { 1709 - slots: { default: '<h3>README</h3><p>Some content</p>' }, 1709 + props: { 1710 + html: '<h3>README</h3><p>Some content</p>', 1711 + }, 1710 1712 }) 1711 1713 const results = await runAxe(component) 1712 1714 expect(results.violations).toEqual([])
+7 -1
test/unit/cli/server.spec.ts
··· 1 - import { describe, expect, it } from 'vitest' 1 + import { describe, expect, it, vi } from 'vitest' 2 2 import { createConnectorApp } from '../../../cli/src/server.ts' 3 3 4 4 const TEST_TOKEN = 'test-token-123' 5 + vi.mock('../../../cli/src/logger.ts', () => { 6 + return { 7 + logError: () => {}, 8 + logDebug: () => {}, 9 + } 10 + }) 5 11 6 12 describe('connector server', () => { 7 13 describe('GET /team/:scopeTeam/users', () => {
+4
test/unit/server/utils/dependency-analysis.spec.ts
··· 76 76 }) 77 77 78 78 it('tracks failed queries when OSV batch API fails', async () => { 79 + // Suppress expected console output from error path 80 + vi.spyOn(console, 'warn').mockImplementation(() => {}) 81 + vi.spyOn(console, 'error').mockImplementation(() => {}) 82 + 79 83 const mockResolved = new Map([ 80 84 [ 81 85 'test-pkg@1.0.0',
+5 -1
vitest.config.ts
··· 31 31 rootDir: fileURLToPath(new URL('.', import.meta.url)), 32 32 overrides: { 33 33 experimental: { 34 + payloadExtraction: false, 34 35 viteEnvironmentApi: false, 36 + }, 37 + pwa: { 38 + pwaAssets: { disabled: true }, 35 39 }, 36 40 ogImage: { enabled: false }, 37 41 }, ··· 40 44 browser: { 41 45 enabled: true, 42 46 provider: playwright(), 43 - instances: [{ browser: 'chromium' }], 47 + instances: [{ browser: 'chromium', headless: true }], 44 48 }, 45 49 }, 46 50 }),