Skip to content

Commit

Permalink
feat: add local fetch test component (#2)
Browse files Browse the repository at this point in the history
* add local fetch test component

* add tests for localfetch

* remove process.env mutation
  • Loading branch information
gonpombo8 authored Nov 16, 2021
1 parent baeb0c3 commit 685175f
Show file tree
Hide file tree
Showing 6 changed files with 8,775 additions and 25 deletions.
11 changes: 11 additions & 0 deletions etc/test-helpers.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@
```ts

import { IConfigComponent } from '@well-known-components/interfaces';
import { IFetchComponent } from '@well-known-components/http-server';
import { Lifecycle } from '@well-known-components/interfaces';
import { default as sinon_2 } from 'sinon';

// @public
export function createLocalFetchCompoment(configComponent: IConfigComponent): Promise<IFetchComponent>;

// @public
export function createRunner<TestComponents extends Record<string, any>>(options: Lifecycle.ProgramConfig<TestComponents>): (name: string, suite: (testArgs: TestArguments<TestComponents>) => void) => void;

// @public
export const defaultServerConfig: () => {
HTTP_SERVER_HOST: string;
HTTP_SERVER_PORT: string;
};

// @public
export type TestArguments<TestComponents extends Record<string, any>> = {
components: Readonly<TestComponents>;
Expand Down
Loading

0 comments on commit 685175f

Please sign in to comment.