From 85469157b9100f0172ec3ba5e0d5fa30518f4f78 Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sat, 25 Nov 2023 20:06:20 -0500 Subject: [PATCH] chore: move tests --- packages/cli/{test => src/lib}/helpers.spec.ts | 2 +- .../lib}/services/config/config-file-loader.spec.ts | 2 +- packages/cli/tsconfig.base.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename packages/cli/{test => src/lib}/helpers.spec.ts (96%) rename packages/cli/{test => src/lib}/services/config/config-file-loader.spec.ts (97%) diff --git a/packages/cli/test/helpers.spec.ts b/packages/cli/src/lib/helpers.spec.ts similarity index 96% rename from packages/cli/test/helpers.spec.ts rename to packages/cli/src/lib/helpers.spec.ts index 15106dfb..98e91a60 100644 --- a/packages/cli/test/helpers.spec.ts +++ b/packages/cli/src/lib/helpers.spec.ts @@ -1,5 +1,5 @@ import { z } from 'zod'; -import { zodParse } from '../src/lib'; +import { zodParse } from './helpers'; describe('zodParse', () => { it('should throw error if payload is invalid', () => { diff --git a/packages/cli/test/services/config/config-file-loader.spec.ts b/packages/cli/src/lib/services/config/config-file-loader.spec.ts similarity index 97% rename from packages/cli/test/services/config/config-file-loader.spec.ts rename to packages/cli/src/lib/services/config/config-file-loader.spec.ts index f5fe3b4d..d9de1036 100644 --- a/packages/cli/test/services/config/config-file-loader.spec.ts +++ b/packages/cli/src/lib/services/config/config-file-loader.spec.ts @@ -1,4 +1,4 @@ -import { ConfigFileLoader } from '../../../src/lib'; +import { ConfigFileLoader } from './config-file-loader'; import Path from 'path'; describe('ConfigFileLoader', () => { diff --git a/packages/cli/tsconfig.base.json b/packages/cli/tsconfig.base.json index 80ca4afa..208e2fe2 100644 --- a/packages/cli/tsconfig.base.json +++ b/packages/cli/tsconfig.base.json @@ -29,5 +29,5 @@ "rootDir": "./src", "outDir": "./dist" }, - "include": ["./src/**/*.ts", "./test/**/*.ts"] + "include": ["./src/**/*.ts"] }