Skip to content

Commit

Permalink
fix(jest): Mock style guide in jest tests (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed May 25, 2017
1 parent 3fafc97 commit 62de152
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions config/jest/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module.exports = {
testPathIgnorePatterns: ['<rootDir>[/\\\\](dist|node_modules)[/\\\\]'],
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy'
'\(seek-style-guide\/react|\.(css|less)$)': require.resolve(
'identity-obj-proxy'
)
},
transform: {
'^.+\\.js$': require.resolve('./babelTransform.js')
},
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\](?!(seek-style-guide)[/\\\\]).+\\.js$'
]
}
};

0 comments on commit 62de152

Please sign in to comment.