How to use the jest-jasmine2/jasmine-async.install function in jest-jasmine2

To help you get started, we’ve selected a few jest-jasmine2 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 w3tecch / aurelia-typescript-boilerplate / test / karma-bundle.js View on Github external
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',

jest-jasmine2

MIT
Latest version published 7 months ago

Package Health Score

87 / 100
Full package analysis

Similar packages