From 0b5e8f5c374a87fcc06b8c13d295c735f49eddcc Mon Sep 17 00:00:00 2001 From: Jose Castelli Date: Tue, 16 Sep 2025 12:54:39 +0200 Subject: [PATCH] Moving grpc recorder unit test (#6214) Moving grpc recorder unit test --- .changeset/short-gifts-promise.md | 5 +++++ .../{ => __tests__}/grpc-recorder.builder.test.ts | 0 .../{ => __tests__}/grpc-recorder.test.ts | 0 .../{ => __tests__}/log-file-handler.test.ts | 0 .../grpc-recorder/{ => __tests__}/test-hooks.test.ts | 10 +++++----- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/short-gifts-promise.md rename src/core/controller/grpc-recorder/{ => __tests__}/grpc-recorder.builder.test.ts (100%) rename src/core/controller/grpc-recorder/{ => __tests__}/grpc-recorder.test.ts (100%) rename src/core/controller/grpc-recorder/{ => __tests__}/log-file-handler.test.ts (100%) rename src/core/controller/grpc-recorder/{ => __tests__}/test-hooks.test.ts (83%) diff --git a/.changeset/short-gifts-promise.md b/.changeset/short-gifts-promise.md new file mode 100644 index 00000000..b313e87e --- /dev/null +++ b/.changeset/short-gifts-promise.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Moving grpc recorder as unit tests diff --git a/src/core/controller/grpc-recorder/grpc-recorder.builder.test.ts b/src/core/controller/grpc-recorder/__tests__/grpc-recorder.builder.test.ts similarity index 100% rename from src/core/controller/grpc-recorder/grpc-recorder.builder.test.ts rename to src/core/controller/grpc-recorder/__tests__/grpc-recorder.builder.test.ts diff --git a/src/core/controller/grpc-recorder/grpc-recorder.test.ts b/src/core/controller/grpc-recorder/__tests__/grpc-recorder.test.ts similarity index 100% rename from src/core/controller/grpc-recorder/grpc-recorder.test.ts rename to src/core/controller/grpc-recorder/__tests__/grpc-recorder.test.ts diff --git a/src/core/controller/grpc-recorder/log-file-handler.test.ts b/src/core/controller/grpc-recorder/__tests__/log-file-handler.test.ts similarity index 100% rename from src/core/controller/grpc-recorder/log-file-handler.test.ts rename to src/core/controller/grpc-recorder/__tests__/log-file-handler.test.ts diff --git a/src/core/controller/grpc-recorder/test-hooks.test.ts b/src/core/controller/grpc-recorder/__tests__/test-hooks.test.ts similarity index 83% rename from src/core/controller/grpc-recorder/test-hooks.test.ts rename to src/core/controller/grpc-recorder/__tests__/test-hooks.test.ts index 53f40ce2..d24c58c8 100644 --- a/src/core/controller/grpc-recorder/test-hooks.test.ts +++ b/src/core/controller/grpc-recorder/__tests__/test-hooks.test.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, it } from "mocha" import "should" +import { Controller } from "@core/controller" +import { IRecorder } from "@core/controller/grpc-recorder/grpc-recorder" +import { GrpcRecorderBuilder } from "@core/controller/grpc-recorder/grpc-recorder.builder" +import { testHooks } from "@core/controller/grpc-recorder/test-hooks" +import { GrpcLogEntry } from "@core/controller/grpc-recorder/types" import * as sinon from "sinon" -import { Controller } from ".." -import { IRecorder } from "./grpc-recorder" -import { GrpcRecorderBuilder } from "./grpc-recorder.builder" -import { testHooks } from "./test-hooks" -import { GrpcLogEntry } from "./types" describe("test-hooks", () => { let cleanupSyntheticEntriesStub: sinon.SinonStub