1
0
mirror of synced 2025-12-19 18:10:59 -05:00

refactor rendering tests to use test.each (#39188)

This commit is contained in:
Peter Bengtsson
2023-07-17 19:30:56 -04:00
committed by GitHub
parent 986b45b322
commit 7addb0142f

View File

@@ -46,9 +46,11 @@ describe('autogenerated docs render', () => {
(!page.fullPath.startsWith(ghappsPath) && page.fullPath.startsWith(restPath)) ||
page.fullPath.startsWith(codeqlCliPath),
)
for (const page of filesWithAutoUpdatedVersions) {
test(`autogenerated page ${page.fullPath} does not use feature based versioning`, () => {
test.each(filesWithAutoUpdatedVersions)(
'autogenerated page $fullPath does not use feature based versioning',
(page) => {
expect(page.versions.feature).toBe(undefined)
})
}
},
)
})