How to use the systemjs.set function in systemjs

To help you get started, we’ve selected a few systemjs 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 Arva / arva-ui-kit / test / meta / TestBootstrap.js View on Github external
export function mockDependency(dependency, replacement) {

    if (!replacement) {
        replacement = sinon.stub();
    if (typeof replacement === 'function') {
        replacement = {default: replacement};

    System.set(System.normalizeSync(dependency), System.newModule(replacement));