forked from coda/packs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment.ts
33 lines (29 loc) · 1.31 KB
/
development.ts
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
29
30
31
32
33
/**
* Utilities that aid in writing unit tests and integration tests for Packs.
* They are only available when developing locally using the CLI.
*
* This module is imported using the following code:
*
* ```ts
* import * as testing from "@codahq/packs-sdk/dist/development";
* ```
*
* @module testing
*/
// Exports for development-related code.
//
// These are kept separate from index.ts to avoid these utilities winding up in pack bundles.
export type {ContextOptions} from './testing/execution';
export type {ExecuteOptions} from './testing/execution';
export {executeFormulaFromPackDef} from './testing/execution';
export {executeMetadataFormula} from './testing/execution';
export {executeSyncFormulaFromPackDef} from './testing/execution';
export {executeSyncFormulaFromPackDefSingleIteration} from './testing/execution';
export {newRealFetcherExecutionContext} from './testing/execution';
export {newRealFetcherSyncExecutionContext} from './testing/execution';
export {executeFormulaOrSyncWithVM} from './testing/execution';
export type {MockExecutionContext} from './testing/mocks';
export type {MockSyncExecutionContext} from './testing/mocks';
export {newJsonFetchResponse} from './testing/mocks';
export {newMockExecutionContext} from './testing/mocks';
export {newMockSyncExecutionContext} from './testing/mocks';