fix storybook instance imports
This commit is contained in:
parent
436d4442f2
commit
ed8eabb246
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue