UNPKG

@tsed/platform-test-sdk

Version:
26 lines (25 loc) 646 B
import { PlatformTest } from "@tsed/platform-http/testing"; import { specsContainer } from "../tests/exports.js"; export class PlatformTestSdk { constructor(options) { this.options = options; } static create(options) { return new PlatformTestSdk(options); } test(name, options = {}) { specsContainer.get(name)({ ...this.options, ...options }); } bootstrap(options = {}) { return PlatformTest.bootstrap(this.options.server, { ...this.options, ...options }); } reset() { return PlatformTest.reset(); } }