How to use the jasmine-core.core function in jasmine-core

To help you get started, we’ve selected a few jasmine-core 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 bcaudan / jasmine-spec-reporter / spec / helpers / nodeDefineJasmineUnderTests.js View on Github external
*/
  var j$Require = require('jasmine-core'),
    jasmineConsole = require('../../node_modules/jasmine-core/lib/console/console.js');

  global.getJasmineRequireObj = function () {
    return j$Require;
  };

  function extend(destination, source) {
    for (var property in source) destination[property] = source[property];
    return destination;
  }

  extend(j$Require, jasmineConsole);

  global.j$ = j$Require.core(j$Require);

  j$Require.console(j$Require, j$);
})();
github fabric8-ui / fabric8-ui / talamer / packages / scripts / config / jest / jasmine.shim.js View on Github external
const jasmineCore = require('jasmine-core');

const jasmine = jasmineCore.core(jasmineCore);

const env = jasmine.getEnv({ suppressLoadErrors: true });

jasmineCore.interface(jasmine, env);

global.jasmine = jasmine;
github bcaudan / jasmine-spec-reporter / spec / helpers / nodeDefineJasmineUnderTests.ts View on Github external
(() => {
    /**
     * Adaptation of jasmine `nodeDefineJasmineUnderTests.js` in order to test jasmine with jasmine.
     * See https://github.com/jasmine/jasmine/blob/master/CONTRIBUTING.md#self-testing
     */
    const jasmineUnderTestRequire = require("jasmine-core");

    global.getJasmineRequireObj = () => {
        return jasmineUnderTestRequire;
    };

    global.jasmineUnderTest = jasmineUnderTestRequire.core(jasmineUnderTestRequire);
})();