Skip to content

Commit

Permalink
chore: better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Aug 8, 2022
1 parent 63201ce commit 0aad645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/testing/config/jest/web/resolver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// See these threads:
// - https://github.com/facebook/jest/issues/12770
// - https://github.com/microsoft/accessibility-insights-web/pull/5421#issuecomment-1109168149.
//
// TL;DR, we need to resolve uuid to a CommonJS version. So we leverage jest's default resolver,
// but use `packageFilter` to process parsed `package.json` before resolution. In doing so,
// we only override how jest resolves uuid.
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
Expand Down

0 comments on commit 0aad645

Please sign in to comment.