mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
b573374d0e
JSDOM tests GitOrigin-RevId: d9e39c61fb2028c5b5577488d74720ef2985eebc
10 lines
348 B
JavaScript
10 lines
348 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'))
|