Skip to content

Commit

Permalink
Add comments explaining why we are loading a specific version of tabb…
Browse files Browse the repository at this point in the history
…able.
  • Loading branch information
asvinb committed Sep 28, 2022
1 parent 9a53f2a commit 9de4a02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __mocks__/tabbable.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* limitations under the License.
*/

// Mocking tabbable as per https://github.com/focus-trap/tabbable#testing-in-jsdom
// Load the tabbable version used by focus-trap-react since another version of tabbable is
// being used by MDC components.
const lib = jest.requireActual( 'focus-trap-react/node_modules/tabbable' );

const tabbable = {
Expand Down

0 comments on commit 9de4a02

Please sign in to comment.