🔥
This commit is contained in:
9
test/.eslintrc
Normal file
9
test/.eslintrc
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"env": {
|
||||
"mocha": true
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-expressions": 0,
|
||||
"padded-blocks": 0
|
||||
}
|
||||
}
|
||||
25
test/setup.js
Normal file
25
test/setup.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* React Starter Kit (https://www.reactstarterkit.com/)
|
||||
*
|
||||
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE.txt file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/* Configure Mocha test runner, see package.json/scripts/test */
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
function noop() {
|
||||
return null;
|
||||
}
|
||||
|
||||
require.extensions['.css'] = noop;
|
||||
require.extensions['.scss'] = noop;
|
||||
require.extensions['.md'] = noop;
|
||||
require.extensions['.png'] = noop;
|
||||
require.extensions['.svg'] = noop;
|
||||
require.extensions['.jpg'] = noop;
|
||||
require.extensions['.jpeg'] = noop;
|
||||
require.extensions['.gif'] = noop;
|
||||
Reference in New Issue
Block a user