From a484862576538b7dd1828b5cd310b55804836582 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:51:00 +0300 Subject: [PATCH] fix: Fix `ColorCircles` and `Sizes` initial render (no-changelog) (#9780) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ --- package.json | 1 + .../src/styleguide/ColorCircles.vue | 27 +++++++++------- .../design-system/src/styleguide/Sizes.vue | 25 +++++++++------ .../styleguide/__tests__/ColorCircles.spec.ts | 32 +++++++++++++++++++ .../src/styleguide/__tests__/Sizes.spec.ts | 23 +++++++++++++ .../__snapshots__/ColorCircles.spec.ts.snap | 14 ++++++++ .../__snapshots__/Sizes.spec.ts.snap | 16 ++++++++++ pnpm-lock.yaml | 27 ++++++++++++++++ 8 files changed, 145 insertions(+), 20 deletions(-) create mode 100644 packages/design-system/src/styleguide/__tests__/ColorCircles.spec.ts create mode 100644 packages/design-system/src/styleguide/__tests__/Sizes.spec.ts create mode 100644 packages/design-system/src/styleguide/__tests__/__snapshots__/ColorCircles.spec.ts.snap create mode 100644 packages/design-system/src/styleguide/__tests__/__snapshots__/Sizes.spec.ts.snap diff --git a/package.json b/package.json index 8579322d8c..335fd824f6 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "typescript": "*", "vite": "^5.2.12", "vitest": "^1.6.0", + "vitest-mock-extended": "^1.3.1", "vue-tsc": "^2.0.19" }, "pnpm": { diff --git a/packages/design-system/src/styleguide/ColorCircles.vue b/packages/design-system/src/styleguide/ColorCircles.vue index 81955c319f..a1c2904991 100644 --- a/packages/design-system/src/styleguide/ColorCircles.vue +++ b/packages/design-system/src/styleguide/ColorCircles.vue @@ -1,5 +1,5 @@