mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
// setup JSDOM
|
|
require('jsdom-global')()
|
|
|
|
// make sure polyfill is loaded before generators
|
|
require('babel-polyfill')
|
|
|
|
require('chai').should()
|
|
|
|
// make common utils available globally as well
|
|
global.Vue = require('vue')
|
|
global.expect = require('expect')
|
|
global.sinon = require('sinon')
|
|
global._ = require('lodash')
|
|
const testUtils = require('vue-test-utils')
|
|
global.shallow = testUtils.shallow
|
|
global.mount = testUtils.mount
|
|
window.__UNIT_TESTING__ = true
|