1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 15:35:14 +02:00

fix unit tests

This commit is contained in:
kakkokari-gtyih
2026-07-08 10:16:28 +09:00
parent 537dd7ee84
commit 816baf286a
6 changed files with 2 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
import { describe, test, assert, afterEach } from 'vitest';
import { render, cleanup, type RenderResult } from '@testing-library/vue';
import { preferState } from './init.js';
import { preferState } from '../setup.unit.js';
import { getEmojiName } from '@@/js/emojilist.js';
import { components } from '@/components/index.js';
import { directives } from '@/directives/index.js';

View File

@@ -5,7 +5,6 @@
import { afterEach, assert, describe, test } from 'vitest';
import { cleanup, render, type RenderResult } from '@testing-library/vue';
import './init';
import * as Misskey from 'misskey-js';
import { directives } from '@/directives/index.js';
import { components } from '@/components/index.js';

View File

@@ -4,7 +4,7 @@
*/
import { describe, expect, it } from 'vitest';
import { I18n } from '../../frontend-shared/js/i18n.js'; // @@で参照できなかったので
import { I18n } from '../../../frontend-shared/js/i18n.js'; // @@で参照できなかったので
import type { ParameterizedString } from 'i18n';
// TODO: このテストはfrontend-sharedに移動する

View File

@@ -5,7 +5,6 @@
import { describe, test, assert, afterEach } from 'vitest';
import { render, cleanup, type RenderResult } from '@testing-library/vue';
import './init';
import * as Misskey from 'misskey-js';
import { components } from '@/components/index.js';
import { directives } from '@/directives/index.js';

View File

@@ -7,7 +7,6 @@ import { afterEach, assert, beforeEach, describe, test, vi } from 'vitest';
import type { Theme } from '@@/js/theme.js';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import './init';
vi.mock('@/i18n.js', () => ({
i18n: {

View File

@@ -5,7 +5,6 @@
import { describe, test, assert, afterEach } from 'vitest';
import { render, cleanup, type RenderResult } from '@testing-library/vue';
import './init';
import type { SummalyResult } from '@misskey-dev/summaly';
import { components } from '@/components/index.js';
import { directives } from '@/directives/index.js';