Skip to content

Instantly share code, notes, and snippets.

@adambray
Created May 1, 2018 20:55
Show Gist options
  • Save adambray/1a0e594c34ad7162006b41aea176f6e5 to your computer and use it in GitHub Desktop.
Save adambray/1a0e594c34ad7162006b41aea176f6e5 to your computer and use it in GitHub Desktop.
var context = require.context('./', true, /Spec\.jsx?$/);
context.keys().forEach(context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment