Skip to content

Commit 5830171

Browse files
authored
fix: add missing jest-transform-stub media types (#6169) (#6170)
Existing: - css - styl - less - sass - scss - svg - png - jpg - ttf - woff - woff2 Added: - jpeg - gif - eot - otf - webp - mp4 - webm - wav - mp3 - m4a - aac - oga
1 parent 451f3d2 commit 5830171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-unit-jest/presets/default/jest-preset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
transform: {
1010
// process *.vue files with vue-jest
1111
'^.+\\.vue$': require.resolve('vue-jest'),
12-
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
12+
'.+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
1313
require.resolve('jest-transform-stub'),
1414
'^.+\\.jsx?$': require.resolve('babel-jest')
1515
},

0 commit comments

Comments
 (0)