How to use the jasmine/lib/jasmine.js function in jasmine

To help you get started, we’ve selected a few jasmine 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 sheepsteak / react-shallow-testutils / specs / support / jasmine.js View on Github external
// eslint-disable-next-line import/no-extraneous-dependencies
require("@babel/register");

process.env.JASMINE_CONFIG_PATH = "specs/support/jasmine.json";

const path = require("path");
// eslint-disable-next-line import/no-extraneous-dependencies
const Command = require("jasmine/lib/command.js");

const command = new Command(path.resolve());

// eslint-disable-next-line import/no-extraneous-dependencies
const Jasmine = require("jasmine/lib/jasmine.js");

const jasmine = new Jasmine({ projectBaseDir: path.resolve() });

command.run(jasmine, process.argv.slice(2));
github atom / text-buffer / spec / support / runner / renderer.js View on Github external
const {remote} = require('electron')

const path = require('path')
const Command = require('jasmine/lib/command.js')
const Jasmine = require('jasmine/lib/jasmine.js')

const jasmine = new Jasmine({ projectBaseDir: path.resolve(), color: false })
const examplesDir = path.join(path.dirname(require.resolve('jasmine-core')), 'jasmine-core', 'example', 'node_example')
const command = new Command(path.resolve(), examplesDir, console.log)

process.stdout.write = function (output) {
  console.log(output)
}

process.exit = function () {}
command.run(jasmine, ['--no-color', '--stop-on-failure=true', ...remote.process.argv.slice(2)])
github sheepsteak / react-perf-component / specs / support / jasmine.js View on Github external
var injectr = require('injectr');

injectr.onload = function(filename, contents) {
  return require('babel').transform(contents, {
    filename: filename
  }).code;
};

process.env.JASMINE_CONFIG_PATH = 'specs/support/jasmine.json';

var path = require('path');
var Command = require('jasmine/lib/command.js');
var command = new Command(path.resolve());

var Jasmine = require('jasmine/lib/jasmine.js');
var jasmine = new Jasmine({ projectBaseDir: path.resolve() });

command.run(jasmine, process.argv.slice(2));