File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
vue2-jest/lib/transformers
vue3-jest/lib/transformers Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ module.exports = scriptLang => ({
21
21
22
22
res . outputText = stripInlineSourceMap ( res . outputText )
23
23
24
- const inputSourceMap =
25
- res . sourceMapText !== undefined ? JSON . parse ( res . sourceMapText ) : ''
24
+ const inputSourceMap = res . sourceMapText && JSON . parse ( res . sourceMapText )
26
25
27
26
const customTransformer =
28
27
getCustomTransformer ( vueJestConfig [ 'transform' ] , 'js' ) || { }
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ module.exports = {
21
21
22
22
res . outputText = stripInlineSourceMap ( res . outputText )
23
23
24
- const inputSourceMap =
25
- res . sourceMapText !== undefined ? JSON . parse ( res . sourceMapText ) : ''
24
+ const inputSourceMap = res . sourceMapText && JSON . parse ( res . sourceMapText )
26
25
27
26
const customTransformer =
28
27
getCustomTransformer ( vueJestConfig [ 'transform' ] , 'js' ) || { }
You can’t perform that action at this time.
0 commit comments