Skip to content

Commit

Permalink
Removed css from jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
storrisi committed Jan 30, 2019
1 parent b785c95 commit 24f08a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module.exports = {
verbose: true,
moduleFileExtensions: ['js', 'jsx', 'json'],
moduleDirectories: ['node_modules'],
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js'
},
transform: {
'^.+\\.(js|jsx)?$': 'babel-jest',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
Expand Down
2 changes: 1 addition & 1 deletion jest.config.unit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var config = require('./jest.config')
config.testRegex = 'ispec\\.js$' //Overriding testRegex option
config.testRegex = 'test.unit\\.js$' //Overriding testRegex option
console.log('RUNNING UNIT TESTS')
module.exports = config
File renamed without changes.
File renamed without changes.

0 comments on commit 24f08a2

Please sign in to comment.