@magda/connector-test-utils

4.2.4 • Public • Published

Magda Connector Utils for Test Cases

The package includes the following utilities for writing Magda connector test cases:

export declare abstract class MockExpressServer {
    server: any;
    run(port: number): Promise<unknown>;
    abstract runImplementation(app: any): void;
}

export declare class MockRegistry extends MockExpressServer {
    aspects: any;
    records: any;
    env: any;
    runImplementation(registry: any): void;
}

/**
 * Hoping to re-use this functionality for all black-box style connector
 * testing.
 */
export declare function runConnectorTest(
    TEST_CASES: any[],
    Catalog: any,
    options?: any
): void;

Readme

Keywords

Package Sidebar

Install

npm i @magda/connector-test-utils

Weekly Downloads

16

Version

4.2.4

License

Apache-2.0

Unpacked Size

1.7 MB

Total Files

4

Last publish

Collaborators

  • kring
  • t83714
  • magda.io