mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 19:09:03 -05:00
18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
const path = require('path')
|
|
const sinon = require('sinon')
|
|
const Promise = require('bluebird')
|
|
|
|
global.expect = require('chai').expect
|
|
global.lib = path.join(__dirname, '..', 'lib')
|
|
|
|
require('chai')
|
|
.use(require('@cypress/sinon-chai'))
|
|
|
|
beforeEach(function () {
|
|
this.sandbox = sinon.sandbox.create().usingPromise(Promise)
|
|
})
|
|
|
|
afterEach(function () {
|
|
this.sandbox.restore()
|
|
})
|