1
2
3
4
5
6
7
8
9
10
11
12
|
// https://github.com/focus-trap/tabbable#testing-in-jsdom
const lib = jest.requireActual('tabbable')
const tabbable = {
...lib,
tabbable: (node, options) => lib.tabbable(node, { ...options, displayCheck: 'none' }),
focusable: (node, options) => lib.focusable(node, { ...options, displayCheck: 'none' }),
isFocusable: (node, options) => lib.isFocusable(node, { ...options, displayCheck: 'none' }),
isTabbable: (node, options) => lib.isTabbable(node, { ...options, displayCheck: 'none' }),
}
module.exports = tabbable
|