Mailspring/packages/isomorphic-core/spec/jasmine/execute.es6
Halla Moore 82e7a276a3 [*] Move Jasmine setup into isomorphic-core
Summary:
Move the base Jasmine spec runner into isomorphic-core to prevent
code duplication. Jasmine will look for the config file relative to
the directory it's being run in though, so we need to symlink the
config file into each package that will need it.

Test Plan: Run tests once the suites are integrated

Reviewers: evan, spang, juan

Reviewed By: spang, juan

Differential Revision: https://phab.nylas.com/D4056
2017-03-01 11:08:37 -08:00

10 lines
320 B
JavaScript

import Jasmine from 'jasmine'
import JasmineExtensions from './extensions'
export default function execute(extendOpts) {
const jasmine = new Jasmine()
jasmine.loadConfigFile('spec/jasmine/config.json')
const jasmineExtensions = new JasmineExtensions()
jasmineExtensions.extend(extendOpts)
jasmine.execute()
}