@apifn/core 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import type { BaseAdapter, TestCase, RunOptions, TestResult } from '@testfn/core' with { 'resolution-mode': 'import' };
2
+
3
+ declare class ApifnTestAdapter extends BaseAdapter {
4
+ name: string;
5
+ supports(framework: string): boolean;
6
+ discover(patterns: string[]): Promise<TestCase[]>;
7
+ run(tests: TestCase[], options: RunOptions): Promise<TestResult[]>;
8
+ }
9
+
10
+ export { ApifnTestAdapter };
@@ -0,0 +1,10 @@
1
+ import { BaseAdapter, TestCase, RunOptions, TestResult } from '@testfn/core';
2
+
3
+ declare class ApifnTestAdapter extends BaseAdapter {
4
+ name: string;
5
+ supports(framework: string): boolean;
6
+ discover(patterns: string[]): Promise<TestCase[]>;
7
+ run(tests: TestCase[], options: RunOptions): Promise<TestResult[]>;
8
+ }
9
+
10
+ export { ApifnTestAdapter };
package/dist/testfn.js ADDED
@@ -0,0 +1,169 @@
1
+ import "./chunk-VUNV25KB.js";
2
+
3
+ // src/integrations/testfn.ts
4
+ import * as path from "path";
5
+ import * as fs from "fs";
6
+ import { BaseAdapter } from "@testfn/core";
7
+ var ApifnTestAdapter = class extends BaseAdapter {
8
+ name = "apifn";
9
+ supports(framework) {
10
+ return framework.toLowerCase() === "apifn";
11
+ }
12
+ async discover(patterns) {
13
+ let glob;
14
+ try {
15
+ const fg = await import("./out-X7U3YPXW.js");
16
+ glob = fg.default ?? fg;
17
+ } catch {
18
+ console.warn("[apifn/testfn] fast-glob not found, using basic fs discovery");
19
+ }
20
+ const { readCollection } = await import("@apifn/collections");
21
+ const testCases = [];
22
+ const discoveredDirs = /* @__PURE__ */ new Set();
23
+ for (const pattern of patterns) {
24
+ if (glob) {
25
+ const files = await glob(
26
+ pattern.endsWith(".yml") || pattern.endsWith(".yaml") ? pattern : `${pattern}/**/opencollection.yml`,
27
+ { absolute: true }
28
+ );
29
+ for (const f of files) {
30
+ discoveredDirs.add(path.dirname(f));
31
+ }
32
+ } else {
33
+ try {
34
+ if (fs.existsSync(pattern)) {
35
+ const stat = fs.statSync(pattern);
36
+ if (stat.isDirectory()) {
37
+ if (fs.existsSync(path.join(pattern, "opencollection.yml"))) {
38
+ discoveredDirs.add(pattern);
39
+ }
40
+ } else if (pattern.endsWith("opencollection.yml")) {
41
+ discoveredDirs.add(path.dirname(pattern));
42
+ }
43
+ }
44
+ } catch {
45
+ }
46
+ }
47
+ }
48
+ for (const dir of discoveredDirs) {
49
+ try {
50
+ const collection = await readCollection(dir);
51
+ const walk = (items, suitePath) => {
52
+ for (const item of items) {
53
+ if (item.kind === "request") {
54
+ const suiteName = suitePath.length > 0 ? suitePath.join(" > ") : collection.info.name;
55
+ testCases.push({
56
+ id: this.generateTestId(dir, item.name, suiteName),
57
+ file: dir,
58
+ name: item.name,
59
+ suite: suiteName,
60
+ tags: ["api"]
61
+ });
62
+ } else if (item.kind === "folder" && item.children) {
63
+ walk(item.children, [...suitePath, item.name]);
64
+ }
65
+ }
66
+ };
67
+ walk(collection.items, []);
68
+ } catch (err) {
69
+ console.warn(`[apifn/testfn] Failed to read collection at ${dir}:`, err);
70
+ }
71
+ }
72
+ return testCases;
73
+ }
74
+ async run(tests, options) {
75
+ const { runCollection, readCollection } = await import("@apifn/collections");
76
+ const results = [];
77
+ const collectionsToRun = /* @__PURE__ */ new Map();
78
+ for (const t of tests) {
79
+ const list = collectionsToRun.get(t.file) || [];
80
+ list.push(t);
81
+ collectionsToRun.set(t.file, list);
82
+ }
83
+ let completedCount = 0;
84
+ const updateProgress = (tc) => {
85
+ completedCount++;
86
+ options.onProgress?.({
87
+ completed: completedCount,
88
+ total: tests.length,
89
+ current: tc
90
+ });
91
+ };
92
+ for (const [dir, testsInCollection] of collectionsToRun.entries()) {
93
+ try {
94
+ const collection = await readCollection(dir);
95
+ const report = await runCollection(collection, {
96
+ // Default to the first environment or a dummy one if none exists
97
+ environment: Object.keys(collection.environments)[0] ?? "default",
98
+ parallel: options.parallel !== void 0 && options.parallel > 1,
99
+ concurrency: typeof options.parallel === "number" ? options.parallel : void 0,
100
+ timeout: options.timeout,
101
+ retries: options.retries,
102
+ overrides: options.env
103
+ });
104
+ for (const reqRes of report.results) {
105
+ const matchedTests = testsInCollection.filter((t) => t.name === reqRes.name);
106
+ for (const tc of matchedTests) {
107
+ let status = "passed";
108
+ let testError;
109
+ if (reqRes.status === "failed" || reqRes.status === "error") {
110
+ status = "failed";
111
+ if (reqRes.status === "failed") {
112
+ const failedAsserts = reqRes.assertions.filter((a) => !a.passed);
113
+ const msg = failedAsserts.map((a) => `- ${a.name}`).join("\n");
114
+ testError = {
115
+ message: `Assertions failed:
116
+ ${msg}`
117
+ };
118
+ } else if (reqRes.status === "error") {
119
+ testError = {
120
+ message: reqRes.error || "Unknown Request Error",
121
+ actual: reqRes.statusCode
122
+ };
123
+ }
124
+ } else if (reqRes.status === "skipped") {
125
+ status = "skipped";
126
+ }
127
+ results.push({
128
+ id: tc.id,
129
+ status,
130
+ duration: reqRes.duration,
131
+ error: testError
132
+ });
133
+ updateProgress(tc);
134
+ }
135
+ }
136
+ const runTestNames = new Set(report.results.map((r) => r.name));
137
+ for (const tc of testsInCollection) {
138
+ if (!runTestNames.has(tc.name)) {
139
+ results.push({
140
+ id: tc.id,
141
+ status: "skipped",
142
+ duration: 0,
143
+ error: { message: "Test not found or excluded in collection run" }
144
+ });
145
+ updateProgress(tc);
146
+ }
147
+ }
148
+ } catch (err) {
149
+ for (const tc of testsInCollection) {
150
+ results.push({
151
+ id: tc.id,
152
+ status: "failed",
153
+ duration: 0,
154
+ error: {
155
+ message: err instanceof Error ? err.message : String(err),
156
+ stack: err instanceof Error ? err.stack : void 0
157
+ }
158
+ });
159
+ updateProgress(tc);
160
+ }
161
+ }
162
+ }
163
+ return results;
164
+ }
165
+ };
166
+ export {
167
+ ApifnTestAdapter
168
+ };
169
+ //# sourceMappingURL=testfn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/integrations/testfn.ts"],"sourcesContent":["import * as path from \"path\";\nimport * as fs from \"fs\";\nimport type {\n TestCase,\n TestResult,\n RunOptions,\n TestStatus,\n TestError,\n TestProgress,\n} from \"@testfn/core\";\nimport { BaseAdapter } from \"@testfn/core\";\n\n// Duck-typing collection types to avoid circular dependency\ninterface CollectionItem { kind: string; name: string; children?: CollectionItem[];[key: string]: any; }\ninterface CollectionInfo { name: string;[key: string]: any; }\ninterface Collection { info: CollectionInfo; items: CollectionItem[]; environments: Record<string, any>;[key: string]: any; }\ninterface AssertionResult { passed: boolean; name: string;[key: string]: any; }\ninterface RequestResult { name: string; status: \"passed\" | \"failed\" | \"error\" | \"skipped\"; duration: number; assertions: AssertionResult[]; error?: string; statusCode?: number;[key: string]: any; }\ninterface RunReport { results: RequestResult[];[key: string]: any; }\n\nexport class ApifnTestAdapter extends BaseAdapter {\n name = \"apifn\";\n\n supports(framework: string): boolean {\n return framework.toLowerCase() === \"apifn\";\n }\n\n async discover(patterns: string[]): Promise<TestCase[]> {\n // Dynamic import to avoid circular dependency\n let glob: ((pattern: string | string[], options?: { absolute?: boolean }) => Promise<string[]>) | undefined;\n try {\n // @testfn/core depends on fast-glob, so reuse it when available.\n const fg = await import(\"fast-glob\");\n glob = (fg as any).default ?? (fg as any);\n } catch {\n console.warn(\"[apifn/testfn] fast-glob not found, using basic fs discovery\");\n }\n\n // @ts-ignore\n const { readCollection } = await import(\"@apifn/collections\");\n const testCases: TestCase[] = [];\n const discoveredDirs = new Set<string>();\n\n for (const pattern of patterns) {\n if (glob) {\n // Find opencollection.yml files matching the pattern\n const files: string[] = await glob(\n pattern.endsWith(\".yml\") || pattern.endsWith(\".yaml\")\n ? pattern\n : `${pattern}/**/opencollection.yml`,\n { absolute: true }\n );\n for (const f of files) {\n discoveredDirs.add(path.dirname(f));\n }\n } else {\n // Fallback if no glob (unlikely since testfn has it)\n try {\n if (fs.existsSync(pattern)) {\n const stat = fs.statSync(pattern);\n if (stat.isDirectory()) {\n if (fs.existsSync(path.join(pattern, \"opencollection.yml\"))) {\n discoveredDirs.add(pattern);\n }\n } else if (pattern.endsWith(\"opencollection.yml\")) {\n discoveredDirs.add(path.dirname(pattern));\n }\n }\n } catch {\n // ignore\n }\n }\n }\n\n for (const dir of discoveredDirs) {\n try {\n const collection: Collection = await readCollection(dir);\n\n // Walk collection to emit test cases\n const walk = (items: CollectionItem[], suitePath: string[]) => {\n for (const item of items) {\n if (item.kind === \"request\") {\n const suiteName = suitePath.length > 0 ? suitePath.join(\" > \") : collection.info.name;\n testCases.push({\n id: this.generateTestId(dir, item.name, suiteName),\n file: dir,\n name: item.name,\n suite: suiteName,\n tags: [\"api\"],\n });\n } else if (item.kind === \"folder\" && item.children) {\n walk(item.children, [...suitePath, item.name]);\n }\n }\n };\n\n walk(collection.items, []);\n } catch (err) {\n console.warn(`[apifn/testfn] Failed to read collection at ${dir}:`, err);\n }\n }\n\n return testCases;\n }\n\n async run(tests: TestCase[], options: RunOptions): Promise<TestResult[]> {\n // @ts-ignore\n const { runCollection, readCollection } = await import(\"@apifn/collections\");\n const results: TestResult[] = [];\n\n // Group tests by collection file/directory\n const collectionsToRun = new Map<string, TestCase[]>();\n for (const t of tests) {\n const list = collectionsToRun.get(t.file) || [];\n list.push(t);\n collectionsToRun.set(t.file, list);\n }\n\n let completedCount = 0;\n const updateProgress = (tc: TestCase) => {\n completedCount++;\n options.onProgress?.({\n completed: completedCount,\n total: tests.length,\n current: tc,\n });\n };\n\n for (const [dir, testsInCollection] of collectionsToRun.entries()) {\n try {\n const collection = await readCollection(dir);\n\n // We need to run the collection, but ideally only the mapped tests.\n // For simplicity, we run the collection with 'include' filter based on matched paths.\n // Since testfn focuses on names, we map names back to items.\n // Or we just run the whole collection and filter the output (if it's fast enough).\n // Best approach: Use `include` with the paths of the requests.\n const report: RunReport = await runCollection(collection, {\n // Default to the first environment or a dummy one if none exists\n environment: Object.keys(collection.environments)[0] ?? \"default\",\n parallel: options.parallel !== undefined && options.parallel > 1,\n concurrency: typeof options.parallel === \"number\" ? options.parallel : undefined,\n timeout: options.timeout,\n retries: options.retries,\n overrides: options.env,\n });\n\n // Map collection results to testfn TestResults\n for (const reqRes of report.results) {\n // Match by request name (testfn test case granularity is per request name).\n const matchedTests = testsInCollection.filter((t) => t.name === reqRes.name);\n for (const tc of matchedTests) {\n let status: TestStatus = \"passed\";\n let testError: TestError | undefined;\n\n if (reqRes.status === \"failed\" || reqRes.status === \"error\") {\n status = \"failed\";\n\n if (reqRes.status === \"failed\") {\n const failedAsserts = reqRes.assertions.filter((a: any) => !a.passed);\n const msg = failedAsserts.map((a: any) => `- ${a.name}`).join(\"\\n\");\n testError = {\n message: `Assertions failed:\\n${msg}`,\n };\n } else if (reqRes.status === \"error\") {\n testError = {\n message: reqRes.error || \"Unknown Request Error\",\n actual: reqRes.statusCode,\n };\n }\n } else if (reqRes.status === \"skipped\") {\n status = \"skipped\";\n }\n\n results.push({\n id: tc.id,\n status,\n duration: reqRes.duration,\n error: testError,\n });\n updateProgress(tc);\n }\n }\n\n // Handle skipped/omitted tests from collection that were requested\n const runTestNames = new Set(report.results.map((r: RequestResult) => r.name));\n for (const tc of testsInCollection) {\n if (!runTestNames.has(tc.name)) {\n results.push({\n id: tc.id,\n status: \"skipped\",\n duration: 0,\n error: { message: \"Test not found or excluded in collection run\" },\n });\n updateProgress(tc);\n }\n }\n } catch (err) {\n // Collection load or execution failure applies error to all tests in it\n for (const tc of testsInCollection) {\n results.push({\n id: tc.id,\n status: \"failed\",\n duration: 0,\n error: {\n message: err instanceof Error ? err.message : String(err),\n stack: err instanceof Error ? err.stack : undefined,\n },\n });\n updateProgress(tc);\n }\n }\n }\n\n return results;\n }\n}\n"],"mappings":";;;AAAA,YAAY,UAAU;AACtB,YAAY,QAAQ;AASpB,SAAS,mBAAmB;AAUrB,IAAM,mBAAN,cAA+B,YAAY;AAAA,EAC9C,OAAO;AAAA,EAEP,SAAS,WAA4B;A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C;AAAA,YACrE,CAAC;AACD,2BAAe,EAAE;AAAA,UACrB;AAAA,QACJ;AAAA,MACJ,SAAS,KAAK;AAEV,mBAAW,MAAM,mBAAmB;AAChC,kBAAQ,KAAK;AAAA,YACT,IAAI,GAAG;AAAA,YACP,QAAQ;AAAA,YACR,UAAU;AAAA,YACV,OAAO;AAAA,cACH,SAAS,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAAA,cACxD,OAAO,eAAe,QAAQ,IAAI,QAAQ;AAAA,YAC9C;AAAA,UACJ,CAAC;AACD,yBAAe,EAAE;AAAA,QACrB;AAAA,MACJ;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AACJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifn/core",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "description": "Core library for ApiFn — route introspection, schema conversion, OpenAPI generation, and diff",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -16,24 +16,35 @@
16
16
  "types": "./dist/types.d.ts",
17
17
  "import": "./dist/types.js",
18
18
  "require": "./dist/types.cjs"
19
+ },
20
+ "./testfn": {
21
+ "import": {
22
+ "types": "./dist/testfn.d.ts",
23
+ "default": "./dist/testfn.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/testfn.d.cts",
27
+ "default": "./dist/testfn.cjs"
28
+ }
19
29
  }
20
30
  },
21
31
  "scripts": {
22
- "build": "tsup",
32
+ "build": "tsup && node scripts/fix-testfn-cjs-types.mjs",
23
33
  "dev": "tsup --watch",
24
- "test": "vitest run",
25
- "lint": "tsc --noEmit"
34
+ "test": "vitest run && node scripts/verify-packed-consumer.mjs",
35
+ "lint": "tsc --noEmit",
36
+ "verify:packed": "node scripts/verify-packed-consumer.mjs"
26
37
  },
27
38
  "dependencies": {
28
39
  "@apidevtools/swagger-parser": "^12.1.0",
29
- "@testfn/core": "0.0.2",
30
40
  "yaml": "^2.8.1",
31
41
  "zod": "^3.25.28",
32
42
  "zod-to-json-schema": "^3.24.6"
33
43
  },
34
44
  "peerDependencies": {
35
45
  "@sinclair/typebox": "*",
36
- "@superfunctions/http": "0.2.0"
46
+ "@superfunctions/http": ">=0.2.0 <0.4.0",
47
+ "@testfn/core": ">=0.0.2 <0.1.0"
37
48
  },
38
49
  "peerDependenciesMeta": {
39
50
  "@sinclair/typebox": {
@@ -41,11 +52,15 @@
41
52
  },
42
53
  "@superfunctions/http": {
43
54
  "optional": false
55
+ },
56
+ "@testfn/core": {
57
+ "optional": true
44
58
  }
45
59
  },
46
60
  "devDependencies": {
47
61
  "@sinclair/typebox": "^0.34.41",
48
- "@superfunctions/http": "0.2.0",
62
+ "@superfunctions/http": "0.3.1",
63
+ "@testfn/core": "0.0.4",
49
64
  "@types/node": "^20.0.0",
50
65
  "tsup": "^8.0.0",
51
66
  "typescript": "^5.3.0",
@@ -67,5 +82,5 @@
67
82
  "files": [
68
83
  "dist"
69
84
  ],
70
- "gitHead": "699d9d09932199d660333c57fe7bc646492ea3bf"
85
+ "gitHead": "b8ace8ea1da0fd09dbd5ab1600cd12a81a000c6e"
71
86
  }