You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After merging #7047 , I received a PR comment from @scottbell to
i think we should be using fs/promises here instead. Also, we shouldn't check for the file's existence before creating the directory as we could get into a race condition. something like this instead:
constfs=require('fs').promises;asyncfunctionwriteAccessibilityReport(reportPath,accessibilityScanResults){try{try{awaitfs.mkdir(TEST_RESULTS_DIR,{recursive: true});}catch(error){if(error.code!=='EEXIST'){throwerror;// Throw the error if it is not because the directory already exists}}constdata=JSON.stringify(accessibilityScanResults,null,2);awaitfs.writeFile(reportPath,data);console.log(`Accessibility report with violations saved successfully as ${reportPath}`);returnaccessibilityScanResults;}catch(err){console.error(`Error writing the accessibility report to file ${reportPath}:`,err);throwerr;}}
This ticket tracks that work
The text was updated successfully, but these errors were encountered:
* re-enable main test
* Enable tests and fix some failing ones
* revert accidental changes
* test(a11y): on failure, take a screenshot to disk
* test(visual): wait for the snapshot indicator to stop flashing
* Fix all failing tests
* test: disable a11y checks for planning suite
* lint:fix
* fix pathing issues
* build: increase visual-a11y parallelism from 2 to 4
* test: darkmatter theme a11y checks + snapshots-- ACTIVATE!
* test: fix file name and path
* fix(#7317): scott bell prophecy
* jk no credit for u
* chore: disable parallelism until we figure out what's going on
* chore: set parallelism to 2 in hopes it fixes percy
---------
Co-authored-by: Hill, John (ARC-TI)[KBR Wyle Services, LLC] <john.c.hill@nasa.gov>
Co-authored-by: Jesse Mazzella <jesse.d.mazzella@nasa.gov>
Summary
After merging #7047 , I received a PR comment from @scottbell to
This ticket tracks that work
The text was updated successfully, but these errors were encountered: