Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Mar 18, 2024
1 parent ca6f708 commit fe5a0ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
result-encoding: string
script: |
const { consoleErrors } = require('./tasks/console-errors.mjs');
const { consoleErrors } = require('./tasks/console-errors.js');
return await consoleErrors();
- name: Fail if console errors have been found
if: ${{ steps.consoleErrors.outputs.result }}
Expand Down
8 changes: 5 additions & 3 deletions tasks/console-errors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ const consoleErrors = async (domain) => {
return errorMessage;
};

export async function consoleErrors(domain = 'http://localhost:3000') {
return await consoleErrors(domain);
}
module.exports = {
consoleErrors: async (domain = 'http://localhost:3000') => {
return await consoleErrors(domain);
}
};

0 comments on commit fe5a0ea

Please sign in to comment.