Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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));
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)])
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));