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 { getProviders } from '@/providers/get';
import { vi, describe, it, expect, afterEach } 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('getProviders()', () => {

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.listSources()', () => {

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()', () => {

View File

@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022"],
"module": "ES2022",
"declaration": true,
"outDir": "./lib",
"strict": true,
"moduleResolution": "NodeNext",
"allowImportingTsExtensions": true,
"noEmit": true,
"experimentalDecorators": true,
"isolatedModules": false,
"skipLibCheck": true,
"paths": {
"@/*": ["../*"],
"@entrypoint": ["../index.ts"]
}
},
"include": ["./"]
}