@bunli/test 0.1.0 → 0.2.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.
- package/dist/index.js +13417 -201
- package/dist/index.js.map +84 -5
- package/dist/test-command.d.ts +2 -3
- package/package.json +4 -4
package/dist/test-command.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@bunli/core';
|
|
1
|
+
import type { Command, CLI } from '@bunli/core';
|
|
2
2
|
import type { TestOptions, TestResult } from './types.js';
|
|
3
|
-
import { createCLI } from '@bunli/core';
|
|
4
3
|
export declare function testCommand(command: Command<any>, options?: TestOptions): Promise<TestResult>;
|
|
5
|
-
export declare function testCLI(setupCLI: (cli:
|
|
4
|
+
export declare function testCLI(setupCLI: (cli: CLI) => void, argv: string[], options?: Omit<TestOptions, 'args'>): Promise<TestResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunli/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Testing utilities for Bunli CLI applications",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "bun scripts/build.ts && bun run tsc",
|
|
43
43
|
"test": "bun test",
|
|
44
|
-
"
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"prepublishOnly": "bun run build"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"bun": ">=1.0.0"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@bunli/core": "0.
|
|
51
|
+
"@bunli/core": "0.2.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@types/bun": "latest",
|
|
54
|
-
"bun-types": "latest",
|
|
55
55
|
"typescript": "^5.8.0"
|
|
56
56
|
}
|
|
57
57
|
}
|