From 8c6b52f43c0762afb8abef362be4a7593213e4d7 Mon Sep 17 00:00:00 2001
From: Christopher Willis-Ford <cwillisf@media.mit.edu>
Date: Mon, 10 Feb 2020 15:09:35 -0800
Subject: [PATCH] mock editor-msgs.js to fix Jest/Babel error

---
 package.json                       | 3 ++-
 test/__mocks__/editor-msgs-mock.js | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 test/__mocks__/editor-msgs-mock.js

diff --git a/package.json b/package.json
index 9735dbff7..34935da58 100644
--- a/package.json
+++ b/package.json
@@ -139,7 +139,8 @@
     ],
     "moduleNameMapper": {
       "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
-      "\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
+      "\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
+      "editor-msgs(\\.js)?$": "<rootDir>/test/__mocks__/editor-msgs-mock.js"
     }
   }
 }
diff --git a/test/__mocks__/editor-msgs-mock.js b/test/__mocks__/editor-msgs-mock.js
new file mode 100644
index 000000000..02ae1d6ba
--- /dev/null
+++ b/test/__mocks__/editor-msgs-mock.js
@@ -0,0 +1,3 @@
+export default {
+    en: {}
+};
-- 
GitLab