Skip to content

Commit c9d0177

Browse files
eluce2claude
andcommitted
test(fmodata): move E2E tests to tests/e2e folder
Move e2e.test.ts and schema-manager.test.ts to tests/e2e/ so they're excluded from default test runs. Update test:e2e script to run entire e2e folder. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 2f2c31f commit c9d0177

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/fmodata/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"test:watch": "vitest --typecheck",
3131
"test:build": "pnpm build && TEST_BUILD=true vitest run --typecheck",
3232
"test:watch:build": "TEST_BUILD=true vitest --typecheck",
33-
"test:e2e": "doppler run -- vitest run tests/e2e.test.ts",
33+
"test:e2e": "doppler run -- vitest run tests/e2e",
3434
"capture": "doppler run -- tsx scripts/capture-responses.ts",
3535
"knip": "knip",
3636
"pub:alpha": "bun run scripts/publish-alpha.ts",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import {
1616
} from "@proofkit/fmodata";
1717
import { afterEach, assert, describe, expect, expectTypeOf, it } from "vitest";
1818
import { z } from "zod/v4";
19-
import { apiKey, contacts, contactsTOWithIds, database, password, serverUrl, username, users } from "./e2e/setup";
20-
import { mockResponses } from "./fixtures/responses";
21-
import { jsonCodec } from "./utils/helpers";
22-
import { createMockFetch, simpleMock } from "./utils/mock-fetch";
19+
import { apiKey, contacts, contactsTOWithIds, database, password, serverUrl, username, users } from "./setup";
20+
import { mockResponses } from "../fixtures/responses";
21+
import { jsonCodec } from "../utils/helpers";
22+
import { createMockFetch, simpleMock } from "../utils/mock-fetch";
2323

2424
if (!serverUrl) {
2525
throw new Error("FMODATA_SERVER_URL environment variable is required");

packages/fmodata/tests/schema-manager.test.ts renamed to packages/fmodata/tests/e2e/schema-manager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { FMServerConnection } from "@proofkit/fmodata";
2828
import { config } from "dotenv";
2929
import { afterEach, describe, expect, it } from "vitest";
3030

31-
config({ path: path.resolve(__dirname, "../.env.local") });
31+
config({ path: path.resolve(__dirname, "../../.env.local") });
3232

3333
// Load environment variables
3434
const serverUrl = process.env.FMODATA_SERVER_URL;

0 commit comments

Comments
 (0)