fix(core): update
This commit is contained in:
		
							
								
								
									
										66
									
								
								.gitea/workflows/default_nottags.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								.gitea/workflows/default_nottags.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,66 @@ | |||||||
|  | name: Default (not tags) | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     tags-ignore: | ||||||
|  |       - '**' | ||||||
|  |  | ||||||
|  | env: | ||||||
|  |   IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci | ||||||
|  |   NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git | ||||||
|  |   NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}} | ||||||
|  |   NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}} | ||||||
|  |   NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}} | ||||||
|  |   NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}} | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   security: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     continue-on-error: true | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Install pnpm and npmci | ||||||
|  |         run: | | ||||||
|  |           pnpm install -g pnpm | ||||||
|  |           pnpm install -g @shipzone/npmci | ||||||
|  |  | ||||||
|  |       - name: Run npm prepare | ||||||
|  |         run: npmci npm prepare | ||||||
|  |  | ||||||
|  |       - name: Audit production dependencies | ||||||
|  |         run: | | ||||||
|  |           npmci command npm config set registry https://registry.npmjs.org | ||||||
|  |           npmci command pnpm audit --audit-level=high --prod | ||||||
|  |         continue-on-error: true | ||||||
|  |  | ||||||
|  |       - name: Audit development dependencies | ||||||
|  |         run: | | ||||||
|  |           npmci command npm config set registry https://registry.npmjs.org | ||||||
|  |           npmci command pnpm audit --audit-level=high --dev | ||||||
|  |         continue-on-error: true | ||||||
|  |  | ||||||
|  |   test: | ||||||
|  |     if: ${{ always() }} | ||||||
|  |     needs: security | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Test stable | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm install | ||||||
|  |           npmci npm test | ||||||
|  |  | ||||||
|  |       - name: Test build | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm install | ||||||
|  |           npmci npm build | ||||||
							
								
								
									
										124
									
								
								.gitea/workflows/default_tags.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								.gitea/workflows/default_tags.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,124 @@ | |||||||
|  | name: Default (tags) | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     tags: | ||||||
|  |       - '*' | ||||||
|  |  | ||||||
|  | env: | ||||||
|  |   IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci | ||||||
|  |   NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git | ||||||
|  |   NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}} | ||||||
|  |   NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}} | ||||||
|  |   NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}} | ||||||
|  |   NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}} | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   security: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     continue-on-error: true | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Prepare | ||||||
|  |         run: | | ||||||
|  |           pnpm install -g pnpm | ||||||
|  |           pnpm install -g @shipzone/npmci | ||||||
|  |           npmci npm prepare | ||||||
|  |  | ||||||
|  |       - name: Audit production dependencies | ||||||
|  |         run: | | ||||||
|  |           npmci command npm config set registry https://registry.npmjs.org | ||||||
|  |           npmci command pnpm audit --audit-level=high --prod | ||||||
|  |         continue-on-error: true | ||||||
|  |  | ||||||
|  |       - name: Audit development dependencies | ||||||
|  |         run: | | ||||||
|  |           npmci command npm config set registry https://registry.npmjs.org | ||||||
|  |           npmci command pnpm audit --audit-level=high --dev | ||||||
|  |         continue-on-error: true | ||||||
|  |  | ||||||
|  |   test: | ||||||
|  |     if: ${{ always() }} | ||||||
|  |     needs: security | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Prepare | ||||||
|  |         run: | | ||||||
|  |           pnpm install -g pnpm | ||||||
|  |           pnpm install -g @shipzone/npmci | ||||||
|  |           npmci npm prepare | ||||||
|  |  | ||||||
|  |       - name: Test stable | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm install | ||||||
|  |           npmci npm test | ||||||
|  |  | ||||||
|  |       - name: Test build | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm install | ||||||
|  |           npmci npm build | ||||||
|  |  | ||||||
|  |   release: | ||||||
|  |     needs: test | ||||||
|  |     if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Prepare | ||||||
|  |         run: | | ||||||
|  |           pnpm install -g pnpm | ||||||
|  |           pnpm install -g @shipzone/npmci | ||||||
|  |           npmci npm prepare | ||||||
|  |  | ||||||
|  |       - name: Release | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm publish | ||||||
|  |  | ||||||
|  |   metadata: | ||||||
|  |     needs: test | ||||||
|  |     if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     container: | ||||||
|  |       image: ${{ env.IMAGE }} | ||||||
|  |     continue-on-error: true | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|  |       - name: Prepare | ||||||
|  |         run: | | ||||||
|  |           pnpm install -g pnpm | ||||||
|  |           pnpm install -g @shipzone/npmci | ||||||
|  |           npmci npm prepare | ||||||
|  |  | ||||||
|  |       - name: Code quality | ||||||
|  |         run: | | ||||||
|  |           npmci command npm install -g typescript | ||||||
|  |           npmci npm install | ||||||
|  |  | ||||||
|  |       - name: Trigger | ||||||
|  |         run: npmci trigger | ||||||
|  |  | ||||||
|  |       - name: Build docs and upload artifacts | ||||||
|  |         run: | | ||||||
|  |           npmci node install stable | ||||||
|  |           npmci npm install | ||||||
|  |           pnpm install -g @gitzone/tsdoc | ||||||
|  |           npmci command tsdoc | ||||||
|  |         continue-on-error: true | ||||||
							
								
								
									
										137
									
								
								.gitlab-ci.yml
									
									
									
									
									
								
							
							
						
						
									
										137
									
								
								.gitlab-ci.yml
									
									
									
									
									
								
							| @@ -1,137 +0,0 @@ | |||||||
| # gitzone ci_default |  | ||||||
| image: registry.gitlab.com/hosttoday/ht-docker-node:npmci |  | ||||||
|  |  | ||||||
| cache: |  | ||||||
|   paths: |  | ||||||
|     - .npmci_cache/ |  | ||||||
|   key: '$CI_BUILD_STAGE' |  | ||||||
|  |  | ||||||
| stages: |  | ||||||
|   - security |  | ||||||
|   - test |  | ||||||
|   - release |  | ||||||
|   - metadata |  | ||||||
|  |  | ||||||
| # ==================== |  | ||||||
| # security stage |  | ||||||
| # ==================== |  | ||||||
| mirror: |  | ||||||
|   stage: security |  | ||||||
|   script: |  | ||||||
|     - npmci git mirror |  | ||||||
|   only: |  | ||||||
|     - tags |  | ||||||
|   tags: |  | ||||||
|     - lossless |  | ||||||
|     - docker |  | ||||||
|     - notpriv |  | ||||||
|  |  | ||||||
| auditProductionDependencies: |  | ||||||
|   image: registry.gitlab.com/hosttoday/ht-docker-node:npmci |  | ||||||
|   stage: security |  | ||||||
|   script: |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci command npm install --production --ignore-scripts |  | ||||||
|     - npmci command npm config set registry https://registry.npmjs.org |  | ||||||
|     - npmci command npm audit --audit-level=high --only=prod --production |  | ||||||
|   tags: |  | ||||||
|     - docker |  | ||||||
|  |  | ||||||
| auditDevDependencies: |  | ||||||
|   image: registry.gitlab.com/hosttoday/ht-docker-node:npmci |  | ||||||
|   stage: security |  | ||||||
|   script: |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci command npm install --ignore-scripts |  | ||||||
|     - npmci command npm config set registry https://registry.npmjs.org |  | ||||||
|     - npmci command npm audit --audit-level=high --only=dev |  | ||||||
|   tags: |  | ||||||
|     - docker |  | ||||||
|   allow_failure: true |  | ||||||
|  |  | ||||||
| # ==================== |  | ||||||
| # test stage |  | ||||||
| # ==================== |  | ||||||
|  |  | ||||||
| testStable: |  | ||||||
|   stage: test |  | ||||||
|   script: |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci node install stable |  | ||||||
|     - npmci npm install |  | ||||||
|     - npmci npm test |  | ||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |  | ||||||
|   tags: |  | ||||||
|     - docker |  | ||||||
|  |  | ||||||
| testBuild: |  | ||||||
|   stage: test |  | ||||||
|   script: |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci node install stable |  | ||||||
|     - npmci npm install |  | ||||||
|     - npmci command npm run build |  | ||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |  | ||||||
|   tags: |  | ||||||
|     - docker |  | ||||||
|  |  | ||||||
| release: |  | ||||||
|   stage: release |  | ||||||
|   script: |  | ||||||
|     - npmci node install stable |  | ||||||
|     - npmci npm publish |  | ||||||
|   only: |  | ||||||
|     - tags |  | ||||||
|   tags: |  | ||||||
|     - lossless |  | ||||||
|     - docker |  | ||||||
|     - notpriv |  | ||||||
|  |  | ||||||
| # ==================== |  | ||||||
| # metadata stage |  | ||||||
| # ==================== |  | ||||||
| codequality: |  | ||||||
|   stage: metadata |  | ||||||
|   allow_failure: true |  | ||||||
|   only: |  | ||||||
|     - tags |  | ||||||
|   script: |  | ||||||
|     - npmci command npm install -g tslint typescript |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci npm install |  | ||||||
|     - npmci command "tslint -c tslint.json ./ts/**/*.ts" |  | ||||||
|   tags: |  | ||||||
|     - lossless |  | ||||||
|     - docker |  | ||||||
|     - priv |  | ||||||
|  |  | ||||||
| trigger: |  | ||||||
|   stage: metadata |  | ||||||
|   script: |  | ||||||
|     - npmci trigger |  | ||||||
|   only: |  | ||||||
|     - tags |  | ||||||
|   tags: |  | ||||||
|     - lossless |  | ||||||
|     - docker |  | ||||||
|     - notpriv |  | ||||||
|  |  | ||||||
| pages: |  | ||||||
|   stage: metadata |  | ||||||
|   script: |  | ||||||
|     - npmci node install lts |  | ||||||
|     - npmci command npm install -g @gitzone/tsdoc |  | ||||||
|     - npmci npm prepare |  | ||||||
|     - npmci npm install |  | ||||||
|     - npmci command tsdoc |  | ||||||
|   tags: |  | ||||||
|     - lossless |  | ||||||
|     - docker |  | ||||||
|     - notpriv |  | ||||||
|   only: |  | ||||||
|     - tags |  | ||||||
|   artifacts: |  | ||||||
|     expire_in: 1 week |  | ||||||
|     paths: |  | ||||||
|       - public |  | ||||||
|   allow_failure: true |  | ||||||
							
								
								
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							| @@ -2,28 +2,10 @@ | |||||||
|   "version": "0.2.0", |   "version": "0.2.0", | ||||||
|   "configurations": [ |   "configurations": [ | ||||||
|     { |     { | ||||||
|       "name": "current file", |       "command": "npm test", | ||||||
|       "type": "node", |       "name": "Run npm test", | ||||||
|       "request": "launch", |       "request": "launch", | ||||||
|       "args": [ |       "type": "node-terminal" | ||||||
|         "${relativeFile}" |  | ||||||
|       ], |  | ||||||
|       "runtimeArgs": ["-r", "@gitzone/tsrun"], |  | ||||||
|       "cwd": "${workspaceRoot}", |  | ||||||
|       "protocol": "inspector", |  | ||||||
|       "internalConsoleOptions": "openOnSessionStart" |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "test.ts", |  | ||||||
|       "type": "node", |  | ||||||
|       "request": "launch", |  | ||||||
|       "args": [ |  | ||||||
|         "test/test.ts" |  | ||||||
|       ], |  | ||||||
|       "runtimeArgs": ["-r", "@gitzone/tsrun"], |  | ||||||
|       "cwd": "${workspaceRoot}", |  | ||||||
|       "protocol": "inspector", |  | ||||||
|       "internalConsoleOptions": "openOnSessionStart" |  | ||||||
|     } |     } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|       "githost": "gitlab.com", |       "githost": "gitlab.com", | ||||||
|       "gitscope": "push.rocks", |       "gitscope": "push.rocks", | ||||||
|       "gitrepo": "tapbundle", |       "gitrepo": "tapbundle", | ||||||
|       "shortDescription": "tap bundled for tapbuffer", |       "description": "tap bundled for tapbuffer", | ||||||
|       "npmPackagename": "@push.rocks/tapbundle", |       "npmPackagename": "@push.rocks/tapbundle", | ||||||
|       "license": "MIT" |       "license": "MIT" | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -8,7 +8,8 @@ | |||||||
|   "type": "module", |   "type": "module", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "test": "(tstest test/)", |     "test": "(tstest test/)", | ||||||
|     "build": "(tsbuild --web --allowimplicitany --skiplibcheck)" |     "build": "(tsbuild --web --allowimplicitany --skiplibcheck)", | ||||||
|  |     "buildDocs": "tsdoc" | ||||||
|   }, |   }, | ||||||
|   "repository": { |   "repository": { | ||||||
|     "type": "git", |     "type": "git", | ||||||
| @@ -50,4 +51,4 @@ | |||||||
|   "browserslist": [ |   "browserslist": [ | ||||||
|     "last 1 chrome versions" |     "last 1 chrome versions" | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
							
								
								
									
										41
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								readme.md
									
									
									
									
									
								
							| @@ -1,27 +1,26 @@ | |||||||
| # @pushrocks/tapbundle | # @push.rocks/tapbundle | ||||||
| tap based testing framework for use with @gitzone/tstest | tap bundled for tapbuffer | ||||||
|  |  | ||||||
| ## Availabililty and Links | ## Availabililty and Links | ||||||
| * [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/tapbundle) | * [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/tapbundle) | ||||||
| * [gitlab.com (source)](https://gitlab.com/pushrocks/tapbundle) | * [gitlab.com (source)](https://gitlab.com/push.rocks/tapbundle) | ||||||
| * [github.com (source mirror)](https://github.com/pushrocks/tapbundle) | * [github.com (source mirror)](https://github.com/push.rocks/tapbundle) | ||||||
| * [docs (typedoc)](https://pushrocks.gitlab.io/tapbundle/) | * [docs (typedoc)](https://push.rocks.gitlab.io/tapbundle/) | ||||||
|  |  | ||||||
| ## Status for master | ## Status for master | ||||||
|  |  | ||||||
| Status Category | Status Badge | Status Category | Status Badge | ||||||
| -- | -- | -- | -- | ||||||
| GitLab Pipelines | [](https://lossless.cloud) | GitLab Pipelines | [](https://lossless.cloud) | ||||||
| GitLab Pipline Test Coverage | [](https://lossless.cloud) | GitLab Pipline Test Coverage | [](https://lossless.cloud) | ||||||
| npm | [](https://lossless.cloud) | npm | [](https://lossless.cloud) | ||||||
| Snyk | [](https://lossless.cloud) | Snyk | [](https://lossless.cloud) | ||||||
| TypeScript Support | [](https://lossless.cloud) | TypeScript Support | [](https://lossless.cloud) | ||||||
| node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| Code Style | [](https://lossless.cloud) | Code Style | [](https://lossless.cloud) | ||||||
| PackagePhobia (total standalone install weight) | [](https://lossless.cloud) | PackagePhobia (total standalone install weight) | [](https://lossless.cloud) | ||||||
| PackagePhobia (package size on registry) | [](https://lossless.cloud) | PackagePhobia (package size on registry) | [](https://lossless.cloud) | ||||||
| BundlePhobia (total size when bundled) | [](https://lossless.cloud) | BundlePhobia (total size when bundled) | [](https://lossless.cloud) | ||||||
| Platform support | [](https://lossless.cloud) [](https://lossless.cloud) |  | ||||||
|  |  | ||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| @@ -31,8 +30,8 @@ A few words on TypeScript | |||||||
|  |  | ||||||
| ### Included in this package | ### Included in this package | ||||||
|  |  | ||||||
| * tap compatible testing framework written in TypeScript | - tap compatible testing framework written in TypeScript | ||||||
| * `expect` and `expectAsync` from the package `@pushrocks/smartexpect` | - `expect` and `expectAsync` from the package `@pushrocks/smartexpect` | ||||||
|  |  | ||||||
| ### A few words on tap | ### A few words on tap | ||||||
|  |  | ||||||
| @@ -59,9 +58,10 @@ const myTest2 = tap.test('my awesome test 2', async (tools) => { | |||||||
| tap.test('my awesome test 3', async (tools) => { | tap.test('my awesome test 3', async (tools) => { | ||||||
|   expect(true).toBeTrue(); // will not throw |   expect(true).toBeTrue(); // will not throw | ||||||
|   await expectAsync(tools.delayFor(2000)).toBeUndefined(); // yay expect promises :) |   await expectAsync(tools.delayFor(2000)).toBeUndefined(); // yay expect promises :) | ||||||
|   expectAsync(myTest2.promise)  // access other tests metadata :) |   expectAsync(myTest2.promise) // access other tests metadata :) | ||||||
|     .property('hrtMeasurement') // and drill down into properties |     .property('hrtMeasurement') // and drill down into properties | ||||||
|     .property('milliSeconds').toBeGreaterThan(1000); |     .property('milliSeconds') | ||||||
|  |     .toBeGreaterThan(1000); | ||||||
| }); | }); | ||||||
|  |  | ||||||
| const myTest4 = tap.testParallel('my awesome test 4', async (tools) => { | const myTest4 = tap.testParallel('my awesome test 4', async (tools) => { | ||||||
| @@ -82,7 +82,6 @@ We are always happy for code contributions. If you are not the code contributing | |||||||
|  |  | ||||||
| For further information read the linked docs at the top of this readme. | For further information read the linked docs at the top of this readme. | ||||||
|  |  | ||||||
| > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | ## Legal | ||||||
|  | > MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc) | ||||||
| | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | ||||||
|  |  | ||||||
| [](https://maintainedby.lossless.com) |  | ||||||
|   | |||||||
| @@ -21,7 +21,10 @@ 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.testPromise).hrtMeasurement.milliSeconds < (await test2).hrtMeasurement.milliSeconds).toBeTrue(); |     expect( | ||||||
|  |       (await test1.testPromise).hrtMeasurement.milliSeconds < | ||||||
|  |         (await test2).hrtMeasurement.milliSeconds | ||||||
|  |     ).toBeTrue(); | ||||||
|     expect((await test2.testPromise).hrtMeasurement.milliSeconds > 10).toBeTrue(); |     expect((await test2.testPromise).hrtMeasurement.milliSeconds > 10).toBeTrue(); | ||||||
|   } |   } | ||||||
| ); | ); | ||||||
|   | |||||||
| @@ -3,6 +3,6 @@ | |||||||
|  */ |  */ | ||||||
| export const commitinfo = { | export const commitinfo = { | ||||||
|   name: '@push.rocks/tapbundle', |   name: '@push.rocks/tapbundle', | ||||||
|   version: '5.0.14', |   version: '5.0.15', | ||||||
|   description: 'tap bundled for tapbuffer' |   description: 'tap bundled for tapbuffer' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,7 +4,4 @@ export { webhelpers } from './webhelpers.js'; | |||||||
|  |  | ||||||
| import { expect, expectAsync } from '@push.rocks/smartexpect'; | import { expect, expectAsync } from '@push.rocks/smartexpect'; | ||||||
|  |  | ||||||
| export { | export { expect, expectAsync }; | ||||||
|   expect, |  | ||||||
|   expectAsync |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -9,9 +9,11 @@ import { HrtMeasurement } from '@push.rocks/smarttime'; | |||||||
| // interfaces | // interfaces | ||||||
| export type TTestStatus = 'success' | 'error' | 'pending' | 'errorAfterSuccess' | 'timeout'; | export type TTestStatus = 'success' | 'error' | 'pending' | 'errorAfterSuccess' | 'timeout'; | ||||||
|  |  | ||||||
| export interface ITestFunction <T> { (tapTools?: TapTools): Promise<T> }; | export interface ITestFunction<T> { | ||||||
|  |   (tapTools?: TapTools): Promise<T>; | ||||||
|  | } | ||||||
|  |  | ||||||
| export class TapTest <T = unknown> { | export class TapTest<T = unknown> { | ||||||
|   public description: string; |   public description: string; | ||||||
|   public failureAllowed: boolean; |   public failureAllowed: boolean; | ||||||
|   public hrtMeasurement: HrtMeasurement; |   public hrtMeasurement: HrtMeasurement; | ||||||
| @@ -27,7 +29,11 @@ export class TapTest <T = unknown> { | |||||||
|   /** |   /** | ||||||
|    * constructor |    * constructor | ||||||
|    */ |    */ | ||||||
|   constructor(optionsArg: { description: string; testFunction: ITestFunction<T>; parallel: boolean }) { |   constructor(optionsArg: { | ||||||
|  |     description: string; | ||||||
|  |     testFunction: ITestFunction<T>; | ||||||
|  |     parallel: boolean; | ||||||
|  |   }) { | ||||||
|     this.description = optionsArg.description; |     this.description = optionsArg.description; | ||||||
|     this.hrtMeasurement = new HrtMeasurement(); |     this.hrtMeasurement = new HrtMeasurement(); | ||||||
|     this.parallel = optionsArg.parallel; |     this.parallel = optionsArg.parallel; | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ class WebHelpers { | |||||||
|  |  | ||||||
|   constructor() { |   constructor() { | ||||||
|     const smartenv = new plugins.smartenv.Smartenv(); |     const smartenv = new plugins.smartenv.Smartenv(); | ||||||
|     if(smartenv.isBrowser) { |     if (smartenv.isBrowser) { | ||||||
|       this.enable(); |       this.enable(); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| @@ -18,7 +18,7 @@ class WebHelpers { | |||||||
|       const webhelpers = await import('@open-wc/testing'); |       const webhelpers = await import('@open-wc/testing'); | ||||||
|       this.html = webhelpers.html; |       this.html = webhelpers.html; | ||||||
|       this.fixture = webhelpers.fixture; |       this.fixture = webhelpers.fixture; | ||||||
|     }) |     }); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user