fix(core): update

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

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,