From c91178f403501662f0ba6abfbd289305970f9664 Mon Sep 17 00:00:00 2001 From: electrovir Date: Mon, 11 Nov 2024 14:47:14 +0000 Subject: [PATCH] [patch] fix SnapshotCommand import in assertSnapshot --- package-lock.json | 46 +++++++++---------- package.json | 2 +- packages/assert/package.json | 4 +- packages/common/package.json | 6 +-- packages/core/package.json | 2 +- packages/node/package.json | 8 ++-- packages/scripts/package.json | 8 ++-- packages/test/package.json | 6 +-- .../universal-snapshot.ts | 4 +- packages/web/package.json | 8 ++-- 10 files changed, 48 insertions(+), 46 deletions(-) diff --git a/package-lock.json b/package-lock.json index db551029..6d7a5863 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@augment-vir/mono-repo-root", - "version": "30.6.1", + "version": "30.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@augment-vir/mono-repo-root", - "version": "30.6.1", + "version": "30.6.2", "hasInstallScript": true, "license": "(MIT or CC0 1.0)", "workspaces": [ @@ -18150,10 +18150,10 @@ }, "packages/assert": { "name": "@augment-vir/assert", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/core": "^30.6.1", + "@augment-vir/core": "^30.6.2", "@date-vir/duration": "^6.0.1", "deep-eql": "^5.0.2", "expect-type": "^1.1.0", @@ -18185,11 +18185,11 @@ }, "packages/common": { "name": "@augment-vir/common", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/core": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/core": "^30.6.2", "@date-vir/duration": "^6.0.1", "ansi-styles": "^6.2.1", "json5": "^2.2.3", @@ -18284,7 +18284,7 @@ }, "packages/core": { "name": "@augment-vir/core", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { "@date-vir/duration": "^6.0.1", @@ -18303,11 +18303,11 @@ }, "packages/node": { "name": "@augment-vir/node", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@date-vir/duration": "^6.0.1", "ansi-styles": "^6.2.1", "terminate": "^2.8.0", @@ -18315,7 +18315,7 @@ "typed-event-target": "^4.0.2" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "@prisma/client": "^5.22.0", "@types/node": "^22.9.0", "@web/dev-server-esbuild": "^1.0.3", @@ -18406,17 +18406,17 @@ }, "packages/scripts": { "name": "@augment-vir/scripts", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/core": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/core": "^30.6.2", "@virmator/docs": "^13.7.0", "jsdom": "^25.0.1", "typedoc": "^0.26.11" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "@types/jsdom": "^21.1.7", "@types/node": "^22.9.0" }, @@ -18426,11 +18426,11 @@ }, "packages/test": { "name": "@augment-vir/test", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@open-wc/testing-helpers": "^3.0.1", "@virmator/test": "^13.7.0", "type-fest": "^4.26.1" @@ -18524,17 +18524,17 @@ }, "packages/web": { "name": "@augment-vir/web", - "version": "30.6.1", + "version": "30.6.2", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@date-vir/duration": "^6.0.1", "html-spec-tags": "^2.2.1", "type-fest": "^4.26.1" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "bowser": "^2.11.0", "typescript": "^5.6.3" }, diff --git a/package.json b/package.json index 2ef4a88d..a90ebf1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/mono-repo-root", - "version": "30.6.1", + "version": "30.6.2", "private": true, "homepage": "https://github.com/electrovir/augment-vir", "bugs": { diff --git a/packages/assert/package.json b/packages/assert/package.json index bfe7d9ef..15e9c59e 100644 --- a/packages/assert/package.json +++ b/packages/assert/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/assert", - "version": "30.6.1", + "version": "30.6.2", "description": "A collection of assertions for test and production code alike.", "keywords": [ "augment", @@ -41,7 +41,7 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/core": "^30.6.1", + "@augment-vir/core": "^30.6.2", "@date-vir/duration": "^6.0.1", "deep-eql": "^5.0.2", "expect-type": "^1.1.0", diff --git a/packages/common/package.json b/packages/common/package.json index 498d6f60..46b48afb 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/common", - "version": "30.6.1", + "version": "30.6.2", "description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.", "keywords": [ "augment", @@ -39,8 +39,8 @@ "test:web": "virmator --no-deps test web" }, "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/core": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/core": "^30.6.2", "@date-vir/duration": "^6.0.1", "ansi-styles": "^6.2.1", "json5": "^2.2.3", diff --git a/packages/core/package.json b/packages/core/package.json index db734fbf..58cbd857 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/core", - "version": "30.6.1", + "version": "30.6.2", "description": "Core augment-vir augments. Use @augment-vir/common instead.", "homepage": "https://github.com/electrovir/augment-vir", "bugs": { diff --git a/packages/node/package.json b/packages/node/package.json index 6b5877c4..9479ff5d 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/node", - "version": "30.6.1", + "version": "30.6.2", "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.", "keywords": [ "augment", @@ -37,8 +37,8 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@date-vir/duration": "^6.0.1", "ansi-styles": "^6.2.1", "terminate": "^2.8.0", @@ -46,7 +46,7 @@ "typed-event-target": "^4.0.2" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "@prisma/client": "^5.22.0", "@types/node": "^22.9.0", "@web/dev-server-esbuild": "^1.0.3", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index ed0caee9..1044faa0 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/scripts", - "version": "30.6.1", + "version": "30.6.2", "private": true, "homepage": "https://github.com/electrovir/augment-vir", "bugs": { @@ -24,14 +24,14 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/core": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/core": "^30.6.2", "@virmator/docs": "^13.7.0", "jsdom": "^25.0.1", "typedoc": "^0.26.11" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "@types/jsdom": "^21.1.7", "@types/node": "^22.9.0" }, diff --git a/packages/test/package.json b/packages/test/package.json index 74d9cad2..f2d55a4f 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/test", - "version": "30.6.1", + "version": "30.6.2", "description": "A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.", "keywords": [ "test", @@ -42,8 +42,8 @@ "test:web": "virmator test --no-deps web 'src/test-web/**/*.test.ts' 'src/augments/universal-testing-suite/**/*.test.ts'" }, "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@open-wc/testing-helpers": "^3.0.1", "@virmator/test": "^13.7.0", "type-fest": "^4.26.1" diff --git a/packages/test/src/augments/universal-testing-suite/universal-snapshot.ts b/packages/test/src/augments/universal-testing-suite/universal-snapshot.ts index e2d6b6c3..3b27a174 100644 --- a/packages/test/src/augments/universal-testing-suite/universal-snapshot.ts +++ b/packages/test/src/augments/universal-testing-suite/universal-snapshot.ts @@ -1,7 +1,6 @@ import {check} from '@augment-vir/assert'; import {extractErrorMessage, log, RuntimeEnv} from '@augment-vir/common'; import { - SnapshotCommand, type CompareCommandResult, type SnapshotPayload, } from '@virmator/test/dist/web-snapshot-plugin/snapshot-payload.js'; @@ -54,6 +53,9 @@ export async function assertSnapshot(testContext: UniversalTestContext, data: un } } } else { + const {SnapshotCommand} = await import( + '@virmator/test/dist/web-snapshot-plugin/snapshot-payload.js' + ); const {executeServerCommand} = await import('@web/test-runner-commands'); const result: CompareCommandResult = await executeServerCommand( diff --git a/packages/web/package.json b/packages/web/package.json index 035f37de..aaf32cf1 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/web", - "version": "30.6.1", + "version": "30.6.2", "description": "A collection of augments, helpers types, functions, and classes only for web (frontend) JavaScript environments.", "keywords": [ "augment", @@ -35,14 +35,14 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^30.6.1", - "@augment-vir/common": "^30.6.1", + "@augment-vir/assert": "^30.6.2", + "@augment-vir/common": "^30.6.2", "@date-vir/duration": "^6.0.1", "html-spec-tags": "^2.2.1", "type-fest": "^4.26.1" }, "devDependencies": { - "@augment-vir/test": "^30.6.1", + "@augment-vir/test": "^30.6.2", "bowser": "^2.11.0", "typescript": "^5.6.3" },