refactor rendering tests to use test.each (#39188)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user