mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
82e7a276a3
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
10 lines
320 B
JavaScript
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()
|
|
}
|