axe-playwright
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -38,3 +38,3 @@ "use strict"; | ||
exports.injectAxe = (page) => __awaiter(void 0, void 0, void 0, function* () { | ||
const axe = fs.readFileSync('node_modules/axe-core/axe.min.js', 'utf8'); | ||
const axe = fs.readFileSync(require.resolve('axe-core/axe.min.js'), 'utf8'); | ||
yield page.evaluate((axe) => window.eval(axe), axe); | ||
@@ -41,0 +41,0 @@ }); |
{ | ||
"name": "axe-playwright", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Custom Playwright commands to inject axe-core and test for a11y", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -22,3 +22,3 @@ import { Page } from 'playwright-core' | ||
const axe: string = fs.readFileSync( | ||
'node_modules/axe-core/axe.min.js', | ||
require.resolve('axe-core/axe.min.js'), | ||
'utf8', | ||
@@ -25,0 +25,0 @@ ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21385