forked from theintern/intern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.js
36 lines (35 loc) · 870 Bytes
/
runner.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* jshint node:true */
if (typeof process !== 'undefined' && typeof define === 'undefined') {
(function () {
require('dojo/loader')((this.__internConfig = {
baseUrl: process.cwd().replace(/\\/g, '/'),
packages: [
{ name: 'intern', location: __dirname.replace(/\\/g, '/') }
],
map: {
intern: {
dojo: 'intern/node_modules/dojo',
chai: 'intern/node_modules/chai/chai',
diff: 'intern/node_modules/diff/diff'
},
'*': {
'intern/dojo': 'intern/node_modules/dojo'
}
}
}), [ 'intern/runner' ]);
})();
}
else {
define([
'./lib/executors/PreExecutor',
'./lib/exitHandler'
], function (PreExecutor, exitHandler) {
var executor = new PreExecutor({
defaultLoaderOptions: (function () {
return this;
})().__internConfig,
executorId: 'runner'
});
exitHandler(process, executor.run(), 10000);
});
}