Skip to content

Commit 0f322f1

Browse files
committed
Fix test-helpers.d.mts
1 parent e00186c commit 0f322f1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

test/utils/test-helpers.d.mts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/** @fileoverview TypeScript declaration for test-helpers.mjs module. */
22

3+
interface IsolatePackageOptions {
4+
entryPoints?: string[]
5+
}
6+
7+
interface IsolatePackageResult<T = unknown> {
8+
pkgPath: string
9+
modules?: T[]
10+
}
11+
312
interface MultiEntryTestResult<T = unknown> {
413
pkgPath: string
514
modules: T[]
@@ -9,6 +18,11 @@ interface TestResult {
918
pkgPath: string
1019
}
1120

21+
export declare function isolatePackage<T = unknown>(
22+
packageOrPath: string,
23+
options?: IsolatePackageOptions,
24+
): Promise<IsolatePackageResult<T>>
25+
1226
export declare function setupMultiEntryTest<T = unknown>(
1327
sockRegPkgName: string,
1428
entryPoints: string[],

0 commit comments

Comments
 (0)