Files
react-native-web/tests.webpack.js
2015-10-19 18:31:27 -07:00

9 lines
298 B
JavaScript

/**
* This module creates a context of all the spec files (following a naming
* convention). It's used as the webpack entry file for unit tests.
*
* See: https://github.com/webpack/docs/wiki/context
*/
var context = require.context('./src', true, /-test\.js$/)
context.keys().forEach(context)