improve test compilation

This commit is contained in:
2016-09-29 00:19:46 +02:00
parent c91ff6ef4a
commit d536e6aa8c
11 changed files with 4 additions and 62 deletions

View File

@ -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
View File

@ -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);
}