diff options
| author | 2022-06-18 03:24:40 +0400 | |
|---|---|---|
| committer | 2022-06-18 14:57:42 +0400 | |
| commit | bd47dceb73620b204156f536d890ec0c56c274b4 (patch) | |
| tree | 02c84bba9bf9aa7d10f1187e89679fb1a4285416 /src | |
| parent | Bump 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 '')
| -rw-r--r-- | src/tests/__mocks__/svg.ts | 4 |
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"; |