Updating Vue Jest Config

Based on https://github.com/storybooks/storybook/issues/2800#issuecomment-359490832 this change is needed to get Storyshots working with Vue/Nuxt starting at 3.4.0-alpha5
This commit is contained in:
Matt Shull 2018-01-23 16:12:11 -06:00 committed by GitHub
parent 821aaa784f
commit 8578270022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,9 @@ module.exports = {
'^.+\\.jsx?$': 'babel-jest',
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor',
},
transformIgnorePatterns: [
'/node_modules/(?!(@storybook/.*\\.vue$))',
],
moduleFileExtensions: ['vue', 'js', 'jsx', 'json', 'node'],
};
```