Skip to content

Commit f21e69d

Browse files
Merge branch 'main' into main
2 parents 7010484 + 934181b commit f21e69d

File tree

5 files changed

+30
-19
lines changed

5 files changed

+30
-19
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ jobs:
111111
run: pnpm vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
112112

113113
- name: ⬆︎ Upload coverage reports to Codecov
114-
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
114+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
115115
with:
116116
report_type: test_results
117117
env:
118118
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
119119

120120
- name: ⬆︎ Upload coverage reports to Codecov
121-
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
121+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
122122
env:
123123
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
124124

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default defineNuxtConfig({
104104
isr: {
105105
expiration: 60 * 60 /* one hour */,
106106
passQuery: true,
107-
allowQuery: ['color', 'labelColor', 'label', 'name', 'style'],
107+
allowQuery: ['color', 'labelColor', 'label', 'name', 'style', 'value'],
108108
},
109109
},
110110
'/api/registry/image-proxy': {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"@types/sanitize-html": "2.16.1",
125125
"@types/semver": "7.7.1",
126126
"@types/validate-npm-package-name": "4.0.2",
127-
"@vitest/coverage-v8": "4.1.1",
127+
"@vitest/coverage-v8": "4.1.2",
128128
"@vue/test-utils": "2.4.6",
129129
"axe-core": "4.11.1",
130130
"changelogen": "0.6.2",

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/e2e/badge.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@ test.describe('badge API', () => {
172172
expect(body).toContain(customLabel)
173173
})
174174

175+
test('custom value parameter is applied to SVG', async ({ page, baseURL }) => {
176+
const customValue = 'custom-value-123'
177+
const url = toLocalUrl(
178+
baseURL,
179+
`/api/registry/badge/version/nuxt?value=${encodeURIComponent(customValue)}`,
180+
)
181+
const { body } = await fetchBadge(page, url)
182+
183+
expect(body).toContain(customValue)
184+
})
185+
175186
test('style=default keeps current badge renderer', async ({ page, baseURL }) => {
176187
const url = toLocalUrl(baseURL, '/api/registry/badge/version/nuxt?style=default')
177188
const { body } = await fetchBadge(page, url)

0 commit comments

Comments
 (0)