How to use @times-components/mock-tpa-server - 4 common examples

To help you get started, we’ve selected a few @times-components/mock-tpa-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / ssr / __tests__ / cypress / plugins / index.js View on Github external
stopMockServer() {
      return mockTpa.stop();
    },
    failed: require("cypress-failed-log/src/failed")()
github newsuk / times-components / packages / ssr / __tests__ / cypress / plugins / index.js View on Github external
startMockServerWith(mockData) {
      return mockTpa.startWithMockData(mockData);
    },
    stopMockServer() {
github newsuk / times-components / packages / ssr / mock-server / index.js View on Github external
const mockTpa = require("@times-components/mock-tpa-server");

mockTpa.start();

process.on("SIGTERM", () => {
  mockTpa.stop();
});

@times-components/mock-tpa-server

utility for testing times component clients with mocked api

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis