Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'aurelia-polyfills';
import 'aurelia-loader-webpack';
import {install as installJasmineAsync} from 'jest-jasmine2/jasmine-async';
// enable running Promise-returning tests:
installJasmineAsync(global);
// enable running the same unit tests by using the Jest expect:
installJestExpect();
global.jest = false;
// disable stacktrace limit so we do not loose any error information
Error.stackTraceLimit = Infinity;
// load and run tests:
const testModuleContexts = loadTestModules();
runTests(testModuleContexts);
function loadTestModules() {
const srcContext = require.context(
// directory:
'../src',
import 'aurelia-loader-default';
import { initialize } from 'aurelia-pal-browser';
import 'aurelia-polyfills';
import { install as installJasmineAsync } from 'jest-jasmine2/build/jasmine-async.js';
initialize();
installJasmineAsync(global);
Error.stackTraceLimit = Infinity;