Created
May 31, 2016 16:50
-
-
Save diessica/76cdb131ddba6ef103d688ab7165c74e to your computer and use it in GitHub Desktop.
Mocha compiler to ignore extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint-disable*/ | |
'use strict' | |
var babel = require('babel-core/register'); | |
function noop() { | |
return null; | |
} | |
require.extensions['.scss'] = noop; | |
require.extensions['.css'] = noop; | |
require.extensions['.svg'] = noop; | |
require.extensions['.png'] = noop; |
By the way, to fix the above warning:
require.extensions['.svg'] =
require.extensions['.png'] = function exportEmptyString (module) {
module.exports = '';
};
@rxaviers up!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why do you define
babel
if you don't use it?Do you get this complain? Should '.svg' tranform return something else than
null
instead?