1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-23 14:46:48 +09:00

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 { 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 {

View File

@ -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 {