Skip to content

Commit 3db90c6

Browse files
committed
Pass explicit pa11yOpts into runPa11y
1 parent 0a8e50f commit 3db90c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/runPa11y/this.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
const path = require('path')
2+
const { getPa11yOpts } = require('../../src/config')
23
const filePath = path.relative(process.cwd(), path.join(__dirname, 'publishDir/index.html'))
34

45
// actual test
56
const pluginCore = require('../../src/pluginCore')
67
test('runPa11y works', async () => {
78
const results = await pluginCore.runPa11y({
8-
htmlFilePaths: [filePath],
99
build: { failBuild() {} },
10+
htmlFilePaths: [filePath],
11+
pa11yOpts: await getPa11yOpts({}),
1012
})
1113
expect(results).toMatchSnapshot()
1214
})

0 commit comments

Comments
 (0)