refactor: remove schemas.ts re-export, use explicit imports in tests
- Remove src/schemas.ts file - Update tests to import directly from src/schemas/index.js
This commit is contained in:
parent
4c100e26da
commit
6c05338904
3 changed files with 3 additions and 9 deletions
|
|
@ -2,7 +2,7 @@ import { execSync } from "node:child_process";
|
|||
import fs from "node:fs";
|
||||
import { join } from "node:path";
|
||||
|
||||
import { LATEST_MANIFEST_VERSION } from "../src/schemas.js";
|
||||
import { LATEST_MANIFEST_VERSION } from "../src/schemas/index.js";
|
||||
|
||||
interface ExecSyncError extends Error {
|
||||
stdout: Buffer;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
getDefaultRepositoryUrl,
|
||||
readPackageJson,
|
||||
} from "../src/cli/init.js";
|
||||
import { LATEST_MANIFEST_VERSION } from "../src/schemas.js";
|
||||
import { LATEST_MANIFEST_VERSION } from "../src/schemas/index.js";
|
||||
|
||||
// Mock the fs module
|
||||
jest.mock("fs", () => ({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
|
||||
import { McpbManifestSchema } from "../src/schemas.js";
|
||||
import { McpbManifestSchema } from "../src/schemas/index.js";
|
||||
|
||||
describe("McpbManifestSchema", () => {
|
||||
it("should validate a valid manifest", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue