@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
12 lines (8 loc) • 452 B
JavaScript
// tests/tests_bundle.js
// require all modules ending in ".browser-test.js" or ".browser-test.jsx" from the
// current directory and all subdirectories
const testsContext = require.context('.', true, /.\.browser-test\.jsx?$/);
testsContext.keys().forEach(testsContext);
// require all `src/components/**/index.js`
const componentsContext = require.context('../components/', true, /index\.js$/);
componentsContext.keys().forEach(componentsContext);