-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.ts
More file actions
28 lines (24 loc) · 869 Bytes
/
Copy pathtesting.ts
File metadata and controls
28 lines (24 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Explicit Runtime testing support.
*
* The harness uses a disposable real Git repository so consumer tests exercise
* the same production composition boundary as `Runtime.open()`.
*/
import { createDefaultRuntimeHarnessHost } from './src/infrastructure/adapters/RuntimeHarnessHostAdapter.ts';
import {
createRuntimeHarnessWithHost,
type RuntimeHarness,
type RuntimeHarnessOptions,
} from './src/testing/RuntimeHarness.ts';
const DEFAULT_RUNTIME_HARNESS_HOST = createDefaultRuntimeHarnessHost();
export async function createRuntimeHarness(
options: RuntimeHarnessOptions
): Promise<RuntimeHarness> {
return await createRuntimeHarnessWithHost(options, DEFAULT_RUNTIME_HARNESS_HOST);
}
export { createRuntimeHarnessWithHost };
export type {
RuntimeHarness,
RuntimeHarnessHost,
RuntimeHarnessOptions,
} from './src/testing/RuntimeHarness.ts';