fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-29 15:14:32 +00:00
parent 61eea77805
commit 7ee3969798
3 changed files with 928 additions and 856 deletions

1767
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@
"@pushrocks/smartdelay": "^2.0.10", "@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartexpress": "^3.0.76", "@pushrocks/smartexpress": "^3.0.76",
"@pushrocks/smartfile": "^8.0.0", "@pushrocks/smartfile": "^8.0.0",
"@pushrocks/smartlog": "^2.0.36", "@pushrocks/smartlog": "^2.0.39",
"@pushrocks/smartpromise": "^3.0.6", "@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartshell": "^2.0.25", "@pushrocks/smartshell": "^2.0.25",
"@pushrocks/tapbundle": "^3.2.9", "@pushrocks/tapbundle": "^3.2.9",

View File

@ -37,16 +37,23 @@ export class TsTest {
const tapCombinator = new TapCombinator(); // lets create the TapCombinator const tapCombinator = new TapCombinator(); // lets create the TapCombinator
for (const fileNameArg of fileNamesToRun) { for (const fileNameArg of fileNamesToRun) {
let tapParser: TapParser;
switch (true) { switch (true) {
case fileNameArg.endsWith('.browser.ts'): case fileNameArg.endsWith('.browser.ts'):
tapParser = await this.runInChrome(fileNameArg); const tapParserBrowser = await this.runInChrome(fileNameArg);
tapCombinator.addTapParser(tapParserBrowser);
break; break;
case fileNameArg.endsWith('.both.ts'):
const tapParserBothBrowser = await this.runInChrome(fileNameArg);
tapCombinator.addTapParser(tapParserBothBrowser);
const tapParserBothNode = await this.runInNode(fileNameArg);
tapCombinator.addTapParser(tapParserBothBrowser);
break;
default: default:
tapParser = await this.runInNode(fileNameArg); const tapParserNode = await this.runInNode(fileNameArg);
tapCombinator.addTapParser(tapParserNode);
break; break;
} }
tapCombinator.addTapParser(tapParser);
console.log(cs(`^`.repeat(16), 'cyan')); console.log(cs(`^`.repeat(16), 'cyan'));
console.log(''); // force new line console.log(''); // force new line
} }