From b312746548b5df46df1b5b3f875c7c5b007c4a1f Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 23 Oct 2024 18:15:04 +0200 Subject: [PATCH] chore: remove unused tests --- test/dts.test.ts | 210 ----------------------------------------------- 1 file changed, 210 deletions(-) diff --git a/test/dts.test.ts b/test/dts.test.ts index 0bb8db4..e304868 100644 --- a/test/dts.test.ts +++ b/test/dts.test.ts @@ -31,216 +31,6 @@ describe('dts-generation', () => { expect(generatedContent).toBe(expectedContent) }) - it('should properly generate types for example-2', async () => { - const example = 'example-0002' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-3', async () => { - const example = 'example-0003' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-4', async () => { - const example = 'example-0004' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-5', async () => { - const example = 'example-0005' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-6', async () => { - const example = 'example-0006' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-7', async () => { - const example = 'example-0007' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-8', async () => { - const example = 'example-0008' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-9', async () => { - const example = 'example-0009' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-10', async () => { - const example = 'example-0010' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - - it('should properly generate types for example-11', async () => { - const example = 'example-0011' - - const config: DtsGenerationOption = { - entrypoints: [join(inputDir, `${example}.ts`)], - outdir: generatedDir, - clean: false, - tsconfigPath: join(__dirname, '..', 'tsconfig.json'), - } - - await generate(config) - - const outputPath = join(outputDir, `${example}.d.ts`) - const generatedPath = join(generatedDir, `${example}.d.ts`) - - const expectedContent = await Bun.file(outputPath).text() - const generatedContent = await Bun.file(generatedPath).text() - - expect(generatedContent).toBe(expectedContent) - }) - afterEach(async () => { // Clean up generated files try {