Compare commits

...

19 Commits

Author SHA1 Message Date
570422ae61 5.0.7 2023-06-22 13:32:44 +02:00
4ba34a4b88 fix(core): update 2023-06-22 13:32:43 +02:00
ae2aabaa86 5.0.6 2022-07-24 15:22:10 +02:00
269a8c974e fix(core): update 2022-07-24 15:22:10 +02:00
10ab777e7f 5.0.5 2022-07-24 14:03:45 +02:00
898eed4584 fix(core): update 2022-07-24 14:03:44 +02:00
7a1eae2bfb 5.0.4 2022-07-24 14:03:30 +02:00
8f7167f201 fix(core): update 2022-07-24 14:03:29 +02:00
6fa151f933 5.0.3 2022-03-24 13:17:20 +01:00
f846b91378 fix(core): update 2022-03-24 13:17:20 +01:00
a0840ee9f4 5.0.2 2022-03-14 13:17:55 +01:00
041534f363 fix(core): update 2022-03-14 13:17:54 +01:00
c89362ba8a 5.0.1 2022-03-14 12:56:17 +01:00
f07879d2c1 fix(core): update 2022-03-14 12:56:17 +01:00
eba3a19488 5.0.0 2022-03-14 11:23:02 +01:00
f83479a407 4.0.9 2022-03-14 11:22:18 +01:00
da711c119f fix(core): update 2022-03-14 11:22:17 +01:00
6690238251 4.0.8 2022-02-28 13:17:00 +01:00
27a794b83c fix(core): update 2022-02-28 13:16:59 +01:00
17 changed files with 4337 additions and 27550 deletions

27494
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,14 @@
{ {
"name": "@pushrocks/tapbundle", "name": "@pushrocks/tapbundle",
"private": false, "private": false,
"version": "4.0.7", "version": "5.0.7",
"description": "tap bundled for tapbuffer", "description": "tap bundled for tapbuffer",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild --web)" "build": "(tsbuild --web --allowimplicitany)"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -20,21 +21,20 @@
}, },
"homepage": "https://gitlab.com/pushrocks/tapbundle#README", "homepage": "https://gitlab.com/pushrocks/tapbundle#README",
"dependencies": { "dependencies": {
"@open-wc/testing-helpers": "^2.0.4", "@open-wc/testing": "^3.2.0",
"@pushrocks/smartdelay": "^2.0.13", "@open-wc/testing-helpers": "^2.3.0",
"@pushrocks/smartenv": "^4.0.16", "@pushrocks/smartdelay": "^3.0.1",
"@pushrocks/smartexpect": "^1.0.12", "@pushrocks/smartenv": "^5.0.2",
"@pushrocks/smartpromise": "^3.1.6", "@pushrocks/smartexpect": "^1.0.15",
"@pushrocks/smarttime": "^3.0.45" "@pushrocks/smartpromise": "^4.0.2",
"@pushrocks/smarttime": "^4.0.1"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.29", "@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.18", "@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.64", "@gitzone/tstest": "^1.0.72",
"@types/node": "^17.0.18", "@types/node": "^20.3.1",
"randomstring": "^1.2.2", "randomstring": "^1.3.0"
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

4279
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { tap, expect, webhelpers } from '../ts/index'; import { tap, expect, webhelpers } from '../ts/index.js';
tap.preTask('custompretask', async () => { tap.preTask('custompretask', async () => {
console.log('this is a pretask'); console.log('this is a pretask');
@ -21,8 +21,8 @@ const test2 = tap.test('my second test', async (tools) => {
const test3 = tap.test( const test3 = tap.test(
'my third test -> test2 should take longer than test1 and endure at least 1000ms', 'my third test -> test2 should take longer than test1 and endure at least 1000ms',
async () => { async () => {
expect((await test1).hrtMeasurement.milliSeconds < (await test2).hrtMeasurement.milliSeconds).toBeTrue(); expect((await test1.testPromise).hrtMeasurement.milliSeconds < (await test2).hrtMeasurement.milliSeconds).toBeTrue();
expect((await test2).hrtMeasurement.milliSeconds > 10).toBeTrue(); expect((await test2.testPromise).hrtMeasurement.milliSeconds > 10).toBeTrue();
} }
); );

View File

@ -1,4 +1,4 @@
import { tap, expect, TapWrap } from '../ts/index'; import { tap, expect, TapWrap } from '../ts/index.js';
tap.test('should run a test', async () => {}); tap.test('should run a test', async () => {});

View File

@ -1,4 +1,4 @@
import { tap, expect } from '../ts/index'; import { tap, expect } from '../ts/index.js';
tap.preTask('hi there', async () => { tap.preTask('hi there', async () => {
console.log('this is a pretask'); console.log('this is a pretask');

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/tapbundle',
version: '5.0.7',
description: 'tap bundled for tapbuffer'
}

View File

@ -1,6 +1,6 @@
export { tap } from './tapbundle.classes.tap'; export { tap } from './tapbundle.classes.tap.js';
export { TapWrap } from './tapbundle.classes.tapwrap'; export { TapWrap } from './tapbundle.classes.tapwrap.js';
export { webhelpers } from './webhelpers'; export { webhelpers } from './webhelpers.js';
import { expect, expectAsync } from '@pushrocks/smartexpect'; import { expect, expectAsync } from '@pushrocks/smartexpect';

View File

@ -1,5 +1,5 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
import { TapTools } from './tapbundle.classes.taptools'; import { TapTools } from './tapbundle.classes.taptools.js';
export interface IPreTaskFunction { export interface IPreTaskFunction {
(tapTools?: TapTools): Promise<any>; (tapTools?: TapTools): Promise<any>;

View File

@ -1,8 +1,8 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
import { IPreTaskFunction, PreTask } from './tapbundle.classes.pretask'; import { type IPreTaskFunction, PreTask } from './tapbundle.classes.pretask.js';
import { TapTest, ITestFunction } from './tapbundle.classes.taptest'; import { TapTest, type ITestFunction } from './tapbundle.classes.taptest.js';
export class Tap <T> { export class Tap<T> {
/** /**
* skips a test * skips a test
* tests marked with tap.skip.test() are never executed * tests marked with tap.skip.test() are never executed

View File

@ -1,6 +1,6 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
import { tapCreator } from './tapbundle.tapcreator'; import { tapCreator } from './tapbundle.tapcreator.js';
import { TapTools } from './tapbundle.classes.taptools'; import { TapTools } from './tapbundle.classes.taptools.js';
// imported interfaces // imported interfaces
import { Deferred } from '@pushrocks/smartpromise'; import { Deferred } from '@pushrocks/smartpromise';

View File

@ -1,5 +1,5 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
import { TapTest } from './tapbundle.classes.taptest'; import { TapTest } from './tapbundle.classes.taptest.js';
export interface IPromiseFunc { export interface IPromiseFunc {
(): Promise<any>; (): Promise<any>;

View File

@ -1,4 +1,4 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
export interface ITapWrapOptions { export interface ITapWrapOptions {
before: () => Promise<any>; before: () => Promise<any>;

View File

@ -1,4 +1,4 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
export class TapCreator { export class TapCreator {
// TODO: // TODO:

View File

@ -1,6 +1,6 @@
import * as plugins from './tapbundle.plugins'; import * as plugins from './tapbundle.plugins.js';
import type { fixture, html } from '@open-wc/testing-helpers'; import type { fixture, html } from '@open-wc/testing-helpers';
import { tap } from './tapbundle.classes.tap'; import { tap } from './tapbundle.classes.tap.js';
class WebHelpers { class WebHelpers {
html: typeof html; html: typeof html;
@ -15,7 +15,7 @@ class WebHelpers {
public enable() { public enable() {
tap.preTask('enable webhelpers', async () => { tap.preTask('enable webhelpers', async () => {
const webhelpers = await import('@open-wc/testing-helpers') const webhelpers = await import('@open-wc/testing');
this.html = webhelpers.html; this.html = webhelpers.html;
this.fixture = webhelpers.fixture; this.fixture = webhelpers.fixture;
}) })

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,
}
}

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"
}