MCPcopy
hub / github.com/systemjs/systemjs / getImportError

Function getImportError

test/system-core.mjs:531–539  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

529 const testPath = path.resolve('test/fixtures').replace(/\\/g, '/') + '/';
530
531 async function getImportError(module) {
532 try {
533 await loader.import(module);
534 assert.fail('Should have failed');
535 }
536 catch(e) {
537 return e.toString();
538 }
539 }
540
541 it('Should throw if instantiate hook doesnt instantiate', async function () {
542 const loader = new SystemLoader();

Callers 1

system-core.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…