fix(core): update

This commit is contained in:
Philipp Kunz 2023-07-13 03:19:11 +02:00
parent 74e1df6824
commit 37e6d94c9f
12 changed files with 1949 additions and 1408 deletions

View File

@ -1,3 +0,0 @@
# How to contribute
Start with `tstest.classes.tstest.ts` to understand whats happening

View File

@ -16,25 +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 --allowimplicitany)",
"build": "(tsbuild --web --allowimplicitany --skiplibcheck)",
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.65",
"@types/node": "^18.11.9"
"@gitzone/tsbuild": "^2.1.66",
"@types/node": "^20.4.2"
},
"dependencies": {
"@gitzone/tsbundle": "^2.0.6",
"@gitzone/tsrun": "^1.2.37",
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartbrowser": "^2.0.5",
"@pushrocks/smartdelay": "^2.0.13",
"@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": "^5.0.4",
"@apiglobal/typedserver": "^2.0.65",
"@gitzone/tsbundle": "^2.0.8",
"@gitzone/tsrun": "^1.2.43",
"@push.rocks/consolecolor": "^2.0.1",
"@push.rocks/smartbrowser": "^2.0.5",
"@push.rocks/smartdelay": "^3.0.2",
"@push.rocks/smartfile": "^10.0.28",
"@push.rocks/smartlog": "^3.0.3",
"@push.rocks/smartpromise": "^4.0.3",
"@push.rocks/smartshell": "^3.0.3",
"@push.rocks/tapbundle": "^5.0.12",
"figures": "^5.0.0"
},
"files": [

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as tstest from '../ts/index.js';
tap.test('prepare test', async () => {});

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@gitzone/tstest',
version: '1.0.75',
version: '1.0.76',
description: 'a test utility to run tests that match test/**/*.ts'
}

View File

@ -2,7 +2,7 @@
// combines different tap test files to an overall result
// ============
import * as plugins from './tstest.plugins.js';
import { coloredString as cs } from '@pushrocks/consolecolor';
import { coloredString as cs } from '@push.rocks/consolecolor';
import { TapParser } from './tstest.classes.tap.parser.js';
import * as logPrefixes from './tstest.logprefixes.js';

View File

@ -1,5 +1,5 @@
import { ChildProcess } from 'child_process';
import { coloredString as cs } from '@pushrocks/consolecolor';
import { coloredString as cs } from '@push.rocks/consolecolor';
// ============
// combines different tap test files to an overall result

View File

@ -1,6 +1,6 @@
import * as plugins from './tstest.plugins.js';
import * as paths from './tstest.paths.js';
import { Smartfile } from '@pushrocks/smartfile';
import { Smartfile } from '@push.rocks/smartfile';
// tap related stuff
import { TapCombinator } from './tstest.classes.tap.combinator.js';

View File

@ -2,7 +2,7 @@ import * as plugins from './tstest.plugins.js';
import * as paths from './tstest.paths.js';
import * as logPrefixes from './tstest.logprefixes.js';
import { coloredString as cs } from '@pushrocks/consolecolor';
import { coloredString as cs } from '@push.rocks/consolecolor';
import { TestDirectory } from './tstest.classes.testdirectory.js';
import { TapCombinator } from './tstest.classes.tap.combinator.js';
@ -105,13 +105,13 @@ export class TsTest {
});
// lets create a server
const server = new plugins.smartexpress.Server({
const server = new plugins.typedserver.servertools.Server({
cors: true,
port: 3007,
});
server.addRoute(
'/test',
new plugins.smartexpress.Handler('GET', async (req, res) => {
new plugins.typedserver.servertools.Handler('GET', async (req, res) => {
res.type('.html');
res.write(`
<html>
@ -126,7 +126,7 @@ export class TsTest {
res.end();
})
);
server.addRoute('*', new plugins.smartexpress.HandlerStatic(tsbundleCacheDirPath));
server.addRoute('*', new plugins.typedserver.servertools.HandlerStatic(tsbundleCacheDirPath));
await server.start();
// lets do the browser bit

View File

@ -1,5 +1,5 @@
import * as plugins from './tstest.plugins.js';
import { coloredString as cs } from '@pushrocks/consolecolor';
import { coloredString as cs } from '@push.rocks/consolecolor';
export const TapPrefix = cs(`::TAP::`, 'pink', 'black');
export const TapErrorPrefix = cs(` !!!TAP PROTOCOL ERROR!!! `, 'red', 'black');

View File

@ -3,21 +3,26 @@ import * as path from 'path';
export { path };
// @pushrocks scope
import * as consolecolor from '@pushrocks/consolecolor';
import * as smartbrowser from '@pushrocks/smartbrowser';
import * as smartexpress from '@pushrocks/smartexpress';
import * as smartdelay from '@pushrocks/smartdelay';
import * as smartfile from '@pushrocks/smartfile';
import * as smartlog from '@pushrocks/smartlog';
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartshell from '@pushrocks/smartshell';
import * as tapbundle from '@pushrocks/tapbundle';
// @apiglobal scope
import * as typedserver from '@apiglobal/typedserver';
export {
typedserver
}
// @push.rocks scope
import * as consolecolor from '@push.rocks/consolecolor';
import * as smartbrowser from '@push.rocks/smartbrowser';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartfile from '@push.rocks/smartfile';
import * as smartlog from '@push.rocks/smartlog';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartshell from '@push.rocks/smartshell';
import * as tapbundle from '@push.rocks/tapbundle';
export {
consolecolor,
smartbrowser,
smartexpress,
smartdelay,
smartfile,
smartlog,

11
tsconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true,
"verbatimModuleSyntax": true,
}
}