From 5ad8d41b1bec3933a59dcb8fe5c49f2b84988ccd Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 15 Oct 2023 22:24:20 +0800 Subject: [PATCH] chore: move tests closer to code (#83) --- {test => src/core}/indexer.test.ts | 2 +- test/index.test.ts => src/core/transform.spec.ts | 2 +- tsconfig.eslint.json | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename {test => src/core}/indexer.test.ts (97%) rename test/index.test.ts => src/core/transform.spec.ts (99%) diff --git a/test/indexer.test.ts b/src/core/indexer.test.ts similarity index 97% rename from test/indexer.test.ts rename to src/core/indexer.test.ts index 3bf9afc8..91c757cf 100644 --- a/test/indexer.test.ts +++ b/src/core/indexer.test.ts @@ -1,4 +1,4 @@ -import { indexerCode } from '../src/core/indexer' +import { indexerCode } from './indexer' import { describe, expect, it } from 'vitest' describe('indexer', () => { diff --git a/test/index.test.ts b/src/core/transform.spec.ts similarity index 99% rename from test/index.test.ts rename to src/core/transform.spec.ts index d9f92a21..def181b2 100644 --- a/test/index.test.ts +++ b/src/core/transform.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { transform } from '../src/core/transform' +import { transform } from './transform' describe('transform', () => { it('handles one simple story', async () => { diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index 15e8c2e8..c9f46ade 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -7,7 +7,6 @@ "include": [ // whatever paths you intend to lint "src", - "test", "examples", "playground", "scripts",