diff --git a/.changeset/blue-pugs-smile.md b/.changeset/blue-pugs-smile.md deleted file mode 100644 index 59dfc284..00000000 --- a/.changeset/blue-pugs-smile.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'vitest-plugin-vis': patch ---- - -Show snapshot paths in failure messages relative to the project root (`./__vis__/...`) instead of absolute. - -Editors and terminals resolve the relative path just as well, and the output no longer leaks the local absolute path when a failure is pasted into a bug report. Paths outside the project root stay absolute. Filesystem operations are unaffected and still resolve to absolute paths. diff --git a/.changeset/olive-moons-shave.md b/.changeset/olive-moons-shave.md deleted file mode 100644 index 47cefc00..00000000 --- a/.changeset/olive-moons-shave.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'storybook-addon-vis': patch ---- - -Wait for the vitest browser modules before using them. - -`commands` and `page` are backed by a dynamic import that nothing awaited, so a -hook reading `commands.setupVisSuite` before it settled got `undefined` and -failed with `commands.setupVisSuite is not a function` — inside a genuine vitest -browser run. Command reads now return a function that waits for the import, and -the addon's `beforeAll` awaits the module load before touching `page` or the -current test. diff --git a/packages/storybook-addon-vis/CHANGELOG.md b/packages/storybook-addon-vis/CHANGELOG.md index 024fb060..81ee8081 100644 --- a/packages/storybook-addon-vis/CHANGELOG.md +++ b/packages/storybook-addon-vis/CHANGELOG.md @@ -1,5 +1,20 @@ # CHANGE LOG +## 4.2.5 + +### Patch Changes + +- [#849](https://github.com/repobuddy/visual-testing/pull/849) [`f450ead`](https://github.com/repobuddy/visual-testing/commit/f450eadb54ea9daf9ce62a227c782b39bf834573) Thanks [@unional](https://github.com/unional)! - Wait for the vitest browser modules before using them. + + `commands` and `page` are backed by a dynamic import that nothing awaited, so a + hook reading `commands.setupVisSuite` before it settled got `undefined` and + failed with `commands.setupVisSuite is not a function` — inside a genuine vitest + browser run. Command reads now return a function that waits for the import, and + the addon's `beforeAll` awaits the module load before touching `page` or the + current test. +- Updated dependencies [[`5364614`](https://github.com/repobuddy/visual-testing/commit/5364614b07e8301250922c190b621300e86ba4fd)]: + - vitest-plugin-vis@5.1.2 + ## 4.2.4 ### Patch Changes diff --git a/packages/storybook-addon-vis/package.json b/packages/storybook-addon-vis/package.json index a11f6fe3..2934edd7 100644 --- a/packages/storybook-addon-vis/package.json +++ b/packages/storybook-addon-vis/package.json @@ -1,6 +1,6 @@ { "name": "storybook-addon-vis", - "version": "4.2.4", + "version": "4.2.5", "description": "Storybook Vitest visual testing addon", "keywords": [ "image-snapshot", diff --git a/packages/vitest-plugin-vis/CHANGELOG.md b/packages/vitest-plugin-vis/CHANGELOG.md index 914a3dce..a9de3a5b 100644 --- a/packages/vitest-plugin-vis/CHANGELOG.md +++ b/packages/vitest-plugin-vis/CHANGELOG.md @@ -1,5 +1,13 @@ # vitest-plugin-vis +## 5.1.2 + +### Patch Changes + +- [#851](https://github.com/repobuddy/visual-testing/pull/851) [`5364614`](https://github.com/repobuddy/visual-testing/commit/5364614b07e8301250922c190b621300e86ba4fd) Thanks [@unional](https://github.com/unional)! - Show snapshot paths in failure messages relative to the project root (`./__vis__/...`) instead of absolute. + + Editors and terminals resolve the relative path just as well, and the output no longer leaks the local absolute path when a failure is pasted into a bug report. Paths outside the project root stay absolute. Filesystem operations are unaffected and still resolve to absolute paths. + ## 5.1.1 ### Patch Changes diff --git a/packages/vitest-plugin-vis/package.json b/packages/vitest-plugin-vis/package.json index 3f5f083b..66a8c6a6 100644 --- a/packages/vitest-plugin-vis/package.json +++ b/packages/vitest-plugin-vis/package.json @@ -1,6 +1,6 @@ { "name": "vitest-plugin-vis", - "version": "5.1.1", + "version": "5.1.2", "description": "Vitest visual testing plugin", "keywords": [ "image-snapshot",