Skip to content

Commit

Permalink
Update src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Corentin Hembise <[email protected]>
  • Loading branch information
bmordue and courentin authored May 15, 2024
1 parent 43fe7bb commit 2213c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const injectAxe = (injectOptions?: InjectOptions) => {

const fileName =
injectOptions?.axeCorePath ||
(typeof require != 'undefined' && typeof require?.resolve === 'function'
(typeof require !== 'undefined' && typeof require?.resolve === 'function'
? require.resolve('axe-core/axe.min.js')
: 'node_modules/axe-core/axe.min.js');
cy.readFile<string>(fileName).then((source) =>
Expand Down

0 comments on commit 2213c8d

Please sign in to comment.