Skip to content

Commit

Permalink
[patch] fix SnapshotCommand import in assertSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Nov 11, 2024
1 parent eb756b4 commit c91178f
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 46 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/assert/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -37,16 +37,16 @@
"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",
"type-fest": "^4.26.1",
"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",
Expand Down
8 changes: 4 additions & 4 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/test/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down

0 comments on commit c91178f

Please sign in to comment.