Skip to content

Commit

Permalink
feat: configure svg-transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
just-paja committed Jun 6, 2023
1 parent 35625be commit 72d65e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/jest/lib/plugins.js
Expand Up @@ -16,6 +16,7 @@ function testPluginExistence(pluginName) {
function getTransforms(extra) {
return Object.entries({
'\\.([cm]?[jt]sx?)$': ['babel-jest', { rootMode: 'upward' }],
'\\.(svg)$': 'jest-svg-transformer',
'\\.(css|styl|less|sass|scss)$': 'jest-css-modules-transform',
})
.filter(([, transformModule]) => testPluginExistence(transformModule))
Expand Down

0 comments on commit 72d65e7

Please sign in to comment.