mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
10 lines
342 B
JavaScript
10 lines
342 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
|
|
*/
|
|
const specContext = require.context('.', true, /.+\.spec\.jsx?$/)
|
|
specContext.keys().forEach(specContext)
|
|
module.exports = specContext
|