UNPKG

fetch-intercept

Version:

Interceptor library for the native fetch command inspired by angular http intercepts.

4 lines (3 loc) 161 B
/* make sure you have your directory and regex test set correctly! */ const context = require.context('./test', true, /\.js$/); context.keys().forEach(context);