From bd47dceb73620b204156f536d890ec0c56c274b4 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Sat, 18 Jun 2022 03:24:40 +0400 Subject: Remove Jest SVG Transformer The current SVG transformer has not had an update in 4 years, and breaks with the latest jest version. The behavior can be very easily replicated by hand, as is documented by SVGR, the library we are already using in webpack. Signed-off-by: Hassan Abouelela --- src/tests/__mocks__/svg.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/tests/__mocks__/svg.ts (limited to 'src') diff --git a/src/tests/__mocks__/svg.ts b/src/tests/__mocks__/svg.ts new file mode 100644 index 0000000..2e3f8e3 --- /dev/null +++ b/src/tests/__mocks__/svg.ts @@ -0,0 +1,4 @@ +// Mock SVG type to power transformations in jest +// See: https://react-svgr.com/docs/jest/ +export default "svg"; +export const ReactComponent = "div"; -- cgit v1.2.3