improve test compilation
This commit is contained in:
4
dist/npmts.compile.js
vendored
4
dist/npmts.compile.js
vendored
@ -11,11 +11,11 @@ exports.run = function (configArg) {
|
||||
.then(() => {
|
||||
plugins.beautylog.ok('compiled main TypeScript!');
|
||||
plugins.beautylog.log('now compiling tests!');
|
||||
return plugins.tsn.compileGlobStringObject(config.testTs);
|
||||
return plugins.tsn.compileGlobStringObject(config.testTs, config.tsOptions, paths.cwd);
|
||||
})
|
||||
.then(function () {
|
||||
plugins.beautylog.ok('compiled all TypeScript!');
|
||||
done.resolve(config);
|
||||
});
|
||||
}).catch(err => { console.log(err); });
|
||||
return done.promise;
|
||||
};
|
||||
|
1
dist/npmts.tests.js
vendored
1
dist/npmts.tests.js
vendored
@ -39,7 +39,6 @@ let mocha = function (configArg) {
|
||||
localSmartstream.run()
|
||||
.then(() => { done.resolve(configArg); }, (err) => {
|
||||
plugins.beautylog.error('Tests failed!');
|
||||
configArg.watch = true;
|
||||
if (configArg.watch) {
|
||||
done.resolve(configArg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user