UNPKG

ran-boilerplate

Version:

React . Apollo (GraphQL) . Next.js Toolkit

26 lines (19 loc) 486 B
var tests = Object.keys(window.__karma__.files).filter(function (file) { return /Spec\.js$/.test(file); }); requirejs.config({ // Karma serves files from '/base' baseUrl: '/base', paths: { 'chai': 'lib/chai' }, shim: { 'underscore': { exports: '_' } }, // ask Require.js to load these files (all our tests) deps: tests, // start test run, once Require.js is done callback: window.__karma__.start });