Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { isBrowser, ConfigService } from 'app/utils'
import appConfig from 'config/app.config'
import helpers from './test-helpers'
configure({ adapter: new ReactSixteenAdapter() })
chai.use(require('chai-shallow-deep-equal'))
chai.use(require('chai-as-promised'))
chai.use(require('chai-enzyme')())
chai.use(require('sinon-chai'))
chai.use(require('chai-generator'))
chai.use(require('chai-jest-snapshot'))
process.env.APP_CONFIG = JSON.stringify(appConfig)
Helmet.defaultProps.defer = false
setGlobals(isBrowser ? window : global)
function setGlobals(global) {
ConfigService.setEnv(process.env.CONFIG_ENV)
ConfigService.assignVars(process.env.APP_CONFIG)
global.global = global
global.expect = expect
global.sinon = sinon
global.snap = snap
global.shallow = shallow
global.mount = mount