Skip to content

Commit

Permalink
fix storybook instance imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Sep 6, 2024
1 parent 436d444 commit ed8eabb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/frontend/src/components/MkDonation.stories.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

import { action } from '@storybook/addon-actions';
import { StoryObj } from '@storybook/vue3';
import { onBeforeUnmount } from 'vue';
import { onBeforeUnmount, inject } from 'vue';
import MkDonation from './MkDonation.vue';
import { instance } from '@/server-metadata.js';
import { DI } from '@/di.js';

const instance = inject(DI.serverMetadata)!;

export const Default = {
render(args) {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { expect, userEvent, waitFor, within } from '@storybook/test';
import { StoryObj } from '@storybook/vue3';
import { onBeforeUnmount } from 'vue';
import { onBeforeUnmount, inject } from 'vue';
import MkSignupServerRules from './MkSignupDialog.rules.vue';
import { i18n } from '@/i18n.js';
import { instance } from '@/server-metadata.js';
import { DI } from '@/di.js';

const instance = inject(DI.serverMetadata)!;

export const Empty = {
render(args) {
return {
Expand Down

0 comments on commit ed8eabb

Please sign in to comment.