trickle-cli 0.1.208 → 0.1.210
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.
- package/dist/commands/test-gen.d.ts +9 -4
- package/dist/commands/test-gen.js +574 -59
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/src/commands/test-gen.ts +657 -67
- package/src/index.ts +4 -1
- package/dist/commands/rn.test.d.ts +0 -1
- package/dist/commands/rn.test.js +0 -138
|
@@ -2,12 +2,17 @@ export interface TestGenOptions {
|
|
|
2
2
|
out?: string;
|
|
3
3
|
framework?: string;
|
|
4
4
|
baseUrl?: string;
|
|
5
|
+
unit?: boolean;
|
|
6
|
+
function?: string;
|
|
7
|
+
module?: string;
|
|
5
8
|
}
|
|
6
9
|
/**
|
|
7
|
-
* `trickle test --generate` — Generate
|
|
10
|
+
* `trickle test --generate` — Generate test files from runtime observations.
|
|
8
11
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
+
* Two modes:
|
|
13
|
+
* Default: API route tests (HTTP endpoint integration tests)
|
|
14
|
+
* --unit: Function-level unit tests from observed inputs/outputs
|
|
15
|
+
*
|
|
16
|
+
* Frameworks: vitest, jest, pytest
|
|
12
17
|
*/
|
|
13
18
|
export declare function testGenCommand(opts: TestGenOptions): Promise<void>;
|