Skip to content

Commit 826d1ff

Browse files
committed
docs: add transformIgnorePatterns option
with default value. Allows easier customisation when exceptions have to be added.
1 parent f1254e2 commit 826d1ff

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-plugin-unit-jest/generator

1 file changed

+1
-0
lines changed

packages/@vue/cli-plugin-unit-jest/generator/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = (api, _, __, invoking) => {
2323
'^.+\\.vue$': 'vue-jest',
2424
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
2525
},
26+
tranformIgnorePatterns: ['/node_modules/'],
2627
// support the same @ -> src alias mapping in source code
2728
'moduleNameMapper': {
2829
'^@/(.*)$': '<rootDir>/src/$1'

0 commit comments

Comments
 (0)