aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
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 /jest.config.js
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 'jest.config.js')
-rw-r--r--jest.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js
index a126998..127d90b 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,7 +1,9 @@
module.exports = {
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest'],
- '^.+\\.svg$': ['jest-svg-transformer']
+ },
+ moduleNameMapper: {
+ '\\.svg$': '<rootDir>/src/tests/__mocks__/svg.ts',
},
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",