aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-06-18 03:24:40 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-06-18 14:57:42 +0400
commitbd47dceb73620b204156f536d890ec0c56c274b4 (patch)
tree02c84bba9bf9aa7d10f1187e89679fb1a4285416 /src
parentBump fortawesome (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/tests/__mocks__/svg.ts4
1 files changed, 4 insertions, 0 deletions
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";