mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 17:43:00 +08:00
9 lines
298 B
JavaScript
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)
|