From c3b99b2fafbff09cf21561a7f0c213eda3f94425 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 12 Jul 2021 20:51:21 +0100 Subject: [PATCH] Remove node-canvas devDependency --- __mocks__/FontManager.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 __mocks__/FontManager.js diff --git a/__mocks__/FontManager.js b/__mocks__/FontManager.js new file mode 100644 index 0000000000..41eab4bf94 --- /dev/null +++ b/__mocks__/FontManager.js @@ -0,0 +1,6 @@ +// Stub out FontManager for tests as it doesn't validate anything we don't already know given +// our fixed test environment and it requires the installation of node-canvas. + +module.exports = { + fixupColorFonts: () => Promise.resolve(), +};