How to use the single-spa.addErrorHandler function in single-spa

To help you get started, we’ve selected a few single-spa 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 CanopyTax / single-spa / spec / apps / unmount-times-out / unmount-times-out.spec.js View on Github external
beforeEach(() => {
    errs = [];
    singleSpa.addErrorHandler(handleError);

    /* See http://jasmine.github.io/2.1/introduction.html#section-Asynchronous_Support.
     * Sometimes saucelabs is so slow on this test that jasmine times out
     */
    ogJasmineTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;

    location.hash = '#';

    return import('./unmount-times-out.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / invalid-no-unmount / invalid-no-unmount.spec.js View on Github external
beforeEach(() => {
    location.hash = activeHash;

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./invalid-no-unmount.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / bootstrap-times-out / bootstrap-times-out.spec.js View on Github external
beforeEach(() => {
    location.hash = '#'

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./bootstrap-times-out.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / invalid-unload / invalid-unload.spec.js View on Github external
beforeEach(() => {
    location.hash = '';

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return singleSpa.triggerAppChange()
  });
github CanopyTax / single-spa / spec / apps / mount-fails / mount-fails.spec.js View on Github external
beforeEach(() => {
    location.hash = `#`;

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./mount-fails.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / invalid-mount / invalid-mount.spec.js View on Github external
beforeEach(() => {
    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./invalid-mount.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / unmount-times-out-dies / unmount-times-out-dies.spec.js View on Github external
beforeEach(() => {
    location.hash = '#';

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./unmount-times-out-dies.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / invalid-load-function / invalid-load-function.spec.js View on Github external
beforeEach(() => {
    location.hash = "#";
    errs = [];
    singleSpa.addErrorHandler(handleError);
  });
github CanopyTax / single-spa / spec / apps / unmount-rejects / unmount-rejects.spec.js View on Github external
beforeEach(() => {
    location.hash = '#';

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./unmount-rejects.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })
github CanopyTax / single-spa / spec / apps / invalid-no-bootstrap / invalid-no-bootstrap.spec.js View on Github external
beforeEach(() => {
    location.hash = activeHash;

    errs = [];
    singleSpa.addErrorHandler(handleError);

    return import('./invalid-no-bootstrap.app.js')
      .then(app => myApp = app)
      .then(app => app.reset())
  })