Skip to content

Commit 8c6b52f

Browse files
author
Christopher Willis-Ford
committed
mock editor-msgs.js to fix Jest/Babel error
1 parent 2ebcd85 commit 8c6b52f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
],
140140
"moduleNameMapper": {
141141
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
142-
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
142+
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
143+
"editor-msgs(\\.js)?$": "<rootDir>/test/__mocks__/editor-msgs-mock.js"
143144
}
144145
}
145146
}

test/__mocks__/editor-msgs-mock.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
en: {}
3+
};

0 commit comments

Comments
 (0)