mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
3f99a5ca73
Outline Item Tests GitOrigin-RevId: fa8c564ce75e3abfa9b977691635392e87cdde81
13 lines
423 B
JavaScript
13 lines
423 B
JavaScript
// Run babel on tests to allow support for import/export statements in Node
|
|
require('@babel/register')
|
|
|
|
// Load JSDOM to mock the DOM in Node
|
|
require('jsdom-global/register')
|
|
|
|
// Load sinon-chai assertions so expect(stubFn).to.have.been.calledWith('abc')
|
|
// has a nicer failure messages
|
|
const chai = require('chai')
|
|
chai.use(require('sinon-chai'))
|
|
|
|
window.i18n = { currentLangCode: 'en' }
|
|
require('../../frontend/js/i18n')
|