fix ts config for tests, so my IDE doesnt complain

This commit is contained in:
mrjvs
2023-09-05 21:29:59 +02:00
parent bcf312d1b3
commit 7d7c6865e4
4 changed files with 24 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { mockEmbeds, mockSources } from '@/__test__/providerTests';
import { makeProviders } from '@/main/builder';
import { afterEach, describe, expect, it, vi } from 'vitest';
const mocks = await vi.hoisted(async () => (await import('@/__test__/providerTests')).makeProviderMocks());
const mocks = await vi.hoisted(async () => (await import('../providerTests.ts')).makeProviderMocks());
vi.mock('@/providers/all', () => mocks);
describe('ProviderControls.getMetadata()', () => {