diff options
Diffstat (limited to 'spec/frontend/__mocks__/mousetrap/index.js')
-rw-r--r-- | spec/frontend/__mocks__/mousetrap/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/__mocks__/mousetrap/index.js b/spec/frontend/__mocks__/mousetrap/index.js new file mode 100644 index 00000000000..63c92fa9a09 --- /dev/null +++ b/spec/frontend/__mocks__/mousetrap/index.js @@ -0,0 +1,6 @@ +/* global Mousetrap */ +// `mousetrap` uses amd which webpack understands but Jest does not +// Thankfully it also writes to a global export so we can es6-ify it +import 'mousetrap'; + +export default Mousetrap; |