fix(core): update
This commit is contained in:
parent
5e42565567
commit
ab33720aba
@ -48,5 +48,8 @@
|
|||||||
"cli.js",
|
"cli.js",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
|
],
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -19,12 +19,16 @@ TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x
|
|||||||
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
|
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
|
||||||
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@gitzone/tstest)](https://lossless.cloud)
|
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@gitzone/tstest)](https://lossless.cloud)
|
||||||
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@gitzone/tstest)](https://lossless.cloud)
|
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@gitzone/tstest)](https://lossless.cloud)
|
||||||
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@gitzone/tstest)](https://lossless.cloud)
|
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@gitzone/tstest)](https://lossless.cloud)
|
||||||
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
|
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
## Contribution
|
||||||
|
|
||||||
|
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
||||||
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
@ -28,6 +28,15 @@ export class TapCombinator {
|
|||||||
` ${plugins.figures.pointer} ` +
|
` ${plugins.figures.pointer} ` +
|
||||||
`does not specify tests!`;
|
`does not specify tests!`;
|
||||||
console.log(overviewString);
|
console.log(overviewString);
|
||||||
|
} else if (tapParser.expectedTests !== tapParser.receivedTests) {
|
||||||
|
failGlobal = true;
|
||||||
|
let overviewString =
|
||||||
|
logPrefixes.TsTestPrefix +
|
||||||
|
cs(` ${tapParser.fileName} ${plugins.figures.cross}`, 'red') +
|
||||||
|
` ${plugins.figures.pointer} ` +
|
||||||
|
tapParser.getTestOverviewAsString() +
|
||||||
|
`did not execute all specified tests!`;
|
||||||
|
console.log(overviewString);
|
||||||
} else if (tapParser.getErrorTests().length === 0) {
|
} else if (tapParser.getErrorTests().length === 0) {
|
||||||
let overviewString =
|
let overviewString =
|
||||||
logPrefixes.TsTestPrefix +
|
logPrefixes.TsTestPrefix +
|
||||||
|
@ -182,7 +182,12 @@ export class TapParser {
|
|||||||
if (!this.expectedTests) {
|
if (!this.expectedTests) {
|
||||||
console.log(cs('Error: No tests were defined. Therefore the testfile failed!', 'red'));
|
console.log(cs('Error: No tests were defined. Therefore the testfile failed!', 'red'));
|
||||||
} else if (this.expectedTests !== this.receivedTests) {
|
} else if (this.expectedTests !== this.receivedTests) {
|
||||||
console.log(cs('Error: The amount of received tests and expectedTests is unequal! Therefore the testfile failed', 'red'));
|
console.log(
|
||||||
|
cs(
|
||||||
|
'Error: The amount of received tests and expectedTests is unequal! Therefore the testfile failed',
|
||||||
|
'red'
|
||||||
|
)
|
||||||
|
);
|
||||||
} else if (this.getErrorTests().length === 0) {
|
} else if (this.getErrorTests().length === 0) {
|
||||||
console.log(`${logPrefixes.TapPrefix} ${cs(`All tests are successfull!!!`, 'green')}`);
|
console.log(`${logPrefixes.TapPrefix} ${cs(`All tests are successfull!!!`, 'green')}`);
|
||||||
} else {
|
} else {
|
||||||
|
@ -168,10 +168,12 @@ export class TsTest {
|
|||||||
const bundleName = new URLSearchParams(window.location.search).get('bundleName');
|
const bundleName = new URLSearchParams(window.location.search).get('bundleName');
|
||||||
console.log(`::TSTEST IN CHROMIUM:: Relevant Script name is: ${bundleName}`);
|
console.log(`::TSTEST IN CHROMIUM:: Relevant Script name is: ${bundleName}`);
|
||||||
const bundleResponse = await fetch(`/${bundleName}`);
|
const bundleResponse = await fetch(`/${bundleName}`);
|
||||||
console.log(`::TSTEST IN CHROMIUM:: Got ${bundleName} with STATUS ${bundleResponse.status}`);
|
console.log(
|
||||||
|
`::TSTEST IN CHROMIUM:: Got ${bundleName} with STATUS ${bundleResponse.status}`
|
||||||
|
);
|
||||||
const bundle = await bundleResponse.text();
|
const bundle = await bundleResponse.text();
|
||||||
console.log(`::TSTEST IN CHROMIUM:: Executing ${bundleName}`);
|
console.log(`::TSTEST IN CHROMIUM:: Executing ${bundleName}`);
|
||||||
try {
|
try {
|
||||||
// tslint:disable-next-line: no-eval
|
// tslint:disable-next-line: no-eval
|
||||||
eval(bundle);
|
eval(bundle);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -188,7 +190,9 @@ export class TsTest {
|
|||||||
);
|
);
|
||||||
await this.smartbrowserInstance.stop();
|
await this.smartbrowserInstance.stop();
|
||||||
await server.stop();
|
await server.stop();
|
||||||
console.log(`${cs('=> ', 'blue')} Stopped ${cs(fileNameArg, 'orange')} chromium instance and server.`);
|
console.log(
|
||||||
|
`${cs('=> ', 'blue')} Stopped ${cs(fileNameArg, 'orange')} chromium instance and server.`
|
||||||
|
);
|
||||||
console.log(`${cs('=> ', 'blue')} See the result captured from the chromium execution:`);
|
console.log(`${cs('=> ', 'blue')} See the result captured from the chromium execution:`);
|
||||||
// lets create the tap parser
|
// lets create the tap parser
|
||||||
const tapParser = new TapParser(fileNameArg);
|
const tapParser = new TapParser(fileNameArg);
|
||||||
|
@ -14,14 +14,22 @@ import * as smartpromise from '@pushrocks/smartpromise';
|
|||||||
import * as smartshell from '@pushrocks/smartshell';
|
import * as smartshell from '@pushrocks/smartshell';
|
||||||
import * as tapbundle from '@pushrocks/tapbundle';
|
import * as tapbundle from '@pushrocks/tapbundle';
|
||||||
|
|
||||||
export { consolecolor, smartbrowser, smartexpress, smartdelay, smartfile, smartlog, smartpromise, smartshell, tapbundle };
|
export {
|
||||||
|
consolecolor,
|
||||||
|
smartbrowser,
|
||||||
|
smartexpress,
|
||||||
|
smartdelay,
|
||||||
|
smartfile,
|
||||||
|
smartlog,
|
||||||
|
smartpromise,
|
||||||
|
smartshell,
|
||||||
|
tapbundle,
|
||||||
|
};
|
||||||
|
|
||||||
// @gitzone scope
|
// @gitzone scope
|
||||||
import * as tsbundle from '@gitzone/tsbundle';
|
import * as tsbundle from '@gitzone/tsbundle';
|
||||||
|
|
||||||
export {
|
export { tsbundle };
|
||||||
tsbundle
|
|
||||||
};
|
|
||||||
|
|
||||||
// sindresorhus
|
// sindresorhus
|
||||||
import * as figures from 'figures';
|
import * as figures from 'figures';
|
||||||
|
Loading…
Reference in New Issue
Block a user