fix storybook instance imports

This commit is contained in:
kakkokari-gtyih 2024-09-06 18:37:18 +09:00
parent 436d4442f2
commit ed8eabb246
2 changed files with 10 additions and 4 deletions

View file

@ -5,9 +5,12 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import { StoryObj } from '@storybook/vue3'; import { StoryObj } from '@storybook/vue3';
import { onBeforeUnmount } from 'vue'; import { onBeforeUnmount, inject } from 'vue';
import MkDonation from './MkDonation.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 = { export const Default = {
render(args) { render(args) {
return { return {

View file

@ -6,10 +6,13 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable @typescript-eslint/explicit-function-return-type */
import { expect, userEvent, waitFor, within } from '@storybook/test'; import { expect, userEvent, waitFor, within } from '@storybook/test';
import { StoryObj } from '@storybook/vue3'; import { StoryObj } from '@storybook/vue3';
import { onBeforeUnmount } from 'vue'; import { onBeforeUnmount, inject } from 'vue';
import MkSignupServerRules from './MkSignupDialog.rules.vue'; import MkSignupServerRules from './MkSignupDialog.rules.vue';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { instance } from '@/server-metadata.js'; import { DI } from '@/di.js';
const instance = inject(DI.serverMetadata)!;
export const Empty = { export const Empty = {
render(args) { render(args) {
return { return {