import glob from 'glob';

import cssHook from 'css-modules-require-hook';
cssHook({generateScopedName: '[name]__[local]'});

glob.sync('**/*-test.js', {realpath: true, cwd: __dirname}).forEach(require);

require('css-modules-require-hook')({
  generateScopedName: '[name]__[local]'
});

require('glob')
  .sync('**/*-test.js', {
    realpath: true,
    cwd: require('path').resolve(process.cwd(), 'test')
  })
  .forEach(require);

Use ES5 for test endpoint so there is no need for babel transform
Use ES5 for test endpoint so there is no need for babel transform
