mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 08:19:50 -04:00
We use nodes require so we have to follow nodes module conventions for test suites. * As a result we need to inject the requirejs loader as well as the exports object. * Also we need to move the requirejs setup logic into it's own module for reuse. * The test modules add tests to the exports object for our test runner.
11 lines
155 B
JavaScript
11 lines
155 B
JavaScript
var requirejs = require('requirejs');
|
|
|
|
requirejs.config({
|
|
baseUrl: "js/",
|
|
nodeRequire: require
|
|
});
|
|
|
|
module.exports = {
|
|
requirejs: requirejs
|
|
};
|