Compare commits

...

16 Commits

Author SHA1 Message Date
e919a4a2e9 1.0.74 2022-11-08 08:03:17 +01:00
85f6703696 fix(core): update 2022-11-08 08:03:17 +01:00
4c2812f671 1.0.73 2022-08-03 19:48:20 +02:00
bab93448e8 fix(core): update 2022-08-03 19:48:19 +02:00
3db913eb59 1.0.72 2022-07-24 14:11:18 +02:00
28e0c32944 fix(core): update 2022-07-24 14:11:17 +02:00
0be6b3400a 1.0.71 2022-05-04 18:58:36 +02:00
eeba113e09 fix(core): update 2022-05-04 18:58:35 +02:00
19e45b305c 1.0.70 2022-03-25 01:30:34 +01:00
f9f4150cff fix(core): update 2022-03-25 01:30:33 +01:00
710548911e 1.0.69 2022-03-17 12:24:40 +01:00
23f9a28fa0 fix(core): update 2022-03-17 12:24:40 +01:00
e1d2f1fd68 1.0.68 2022-03-16 12:28:50 +01:00
3116c5a818 fix(core): update 2022-03-16 12:28:50 +01:00
568772734b 1.0.67 2022-03-14 11:49:39 +01:00
30525e7e55 fix(core): update 2022-03-14 11:49:38 +01:00
6 changed files with 4233 additions and 16904 deletions

16867
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tstest",
"version": "1.0.66",
"version": "1.0.74",
"private": false,
"description": "a test utility to run tests that match test/**/*.ts",
"main": "dist_ts/index.js",
@ -16,27 +16,25 @@
"prepareTest": "git clone https://gitlab.com/sandboxzone/sandbox-npmts.git .nogit/sandbox-npmts && cd .nogit/sandbox-npmts && npm install",
"tstest": "cd .nogit/sandbox-npmts && node ../../cli.ts.js test/ --web",
"cleanUp": "rm -rf .nogit/sandbox-npmts",
"build": "(tsbuild --web --skiplibcheck)"
"build": "(tsbuild --web --allowimplicitany)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.48",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
"@gitzone/tsbuild": "^2.1.65",
"@types/node": "^18.11.9"
},
"dependencies": {
"@gitzone/tsbundle": "^1.0.91",
"@gitzone/tsrun": "^1.2.31",
"@gitzone/tsbundle": "^2.0.6",
"@gitzone/tsrun": "^1.2.37",
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartbrowser": "^1.0.22",
"@pushrocks/smartbrowser": "^2.0.5",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartexpress": "^3.0.108",
"@pushrocks/smartfile": "^9.0.6",
"@pushrocks/smartlog": "^2.0.44",
"@pushrocks/smartexpress": "^4.0.21",
"@pushrocks/smartfile": "^10.0.4",
"@pushrocks/smartlog": "^3.0.1",
"@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartshell": "^2.0.30",
"@pushrocks/tapbundle": "^4.0.8",
"@types/figures": "^3.0.1",
"figures": "^4.0.0"
"@pushrocks/tapbundle": "^5.0.4",
"figures": "^5.0.0"
},
"files": [
"ts/**/*",

4205
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@gitzone/tstest',
version: '1.0.74',
description: 'a test utility to run tests that match test/**/*.ts'
}

View File

@ -41,15 +41,15 @@ export class TsTest {
case process.env.CI && fileNameArg.includes('.nonci.'):
console.log('!!!!!!!!!!!');
console.log(
`not running testfile ${fileNameArg}, sinc we are CI and file name includes '.nonci.' tag`
`not running testfile ${fileNameArg}, since we are CI and file name includes '.nonci.' tag`
);
console.log('!!!!!!!!!!!');
break;
case fileNameArg.endsWith('.browser.ts'):
case (fileNameArg.endsWith('.browser.ts') || fileNameArg.endsWith('.browser.nonci.ts' )):
const tapParserBrowser = await this.runInChrome(fileNameArg);
tapCombinator.addTapParser(tapParserBrowser);
break;
case fileNameArg.endsWith('.both.ts'):
case (fileNameArg.endsWith('.both.ts') || fileNameArg.endsWith('.both.nonci.ts')):
console.log('>>>>>>> TEST PART 1: chrome');
const tapParserBothBrowser = await this.runInChrome(fileNameArg);
tapCombinator.addTapParser(tapParserBothBrowser);
@ -99,8 +99,10 @@ export class TsTest {
const bundleFilePath = plugins.path.join(tsbundleCacheDirPath, bundleFileName);
// lets bundle the test
await plugins.smartfile.fs.ensureDir(tsbundleCacheDirPath);
await this.tsbundleInstance.buildTest(process.cwd(), fileNameArg, bundleFilePath, 'rollup');
await plugins.smartfile.fs.ensureEmptyDir(tsbundleCacheDirPath);
await this.tsbundleInstance.build(process.cwd(), fileNameArg, bundleFilePath, {
bundler: 'esbuild'
});
// lets create a server
const server = new plugins.smartexpress.Server({
@ -134,7 +136,7 @@ export class TsTest {
async () => {
const convertToText = (obj: any): string => {
// create an array that will later be joined into a string.
const stringArray = [];
const stringArray: string[] = [];
if (typeof obj === 'object' && typeof obj.toString === 'function') {
stringArray.push(obj.toString());

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}