We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8e50f commit 3db90c6Copy full SHA for 3db90c6
tests/runPa11y/this.test.js
@@ -1,12 +1,14 @@
1
const path = require('path')
2
+const { getPa11yOpts } = require('../../src/config')
3
const filePath = path.relative(process.cwd(), path.join(__dirname, 'publishDir/index.html'))
4
5
// actual test
6
const pluginCore = require('../../src/pluginCore')
7
test('runPa11y works', async () => {
8
const results = await pluginCore.runPa11y({
- htmlFilePaths: [filePath],
9
build: { failBuild() {} },
10
+ htmlFilePaths: [filePath],
11
+ pa11yOpts: await getPa11yOpts({}),
12
})
13
expect(results).toMatchSnapshot()
14
0 commit comments