Skip to content

Instantly share code, notes, and snippets.

@jerolan
Created March 13, 2017 18:35
Show Gist options
  • Save jerolan/41714b9e252e6408327ff98926ace845 to your computer and use it in GitHub Desktop.
Save jerolan/41714b9e252e6408327ff98926ace845 to your computer and use it in GitHub Desktop.
Basic chai set up for bdd
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import dotenv from 'dotenv'
import path from 'path'
chai.use(chaiAsPromised)
dotenv.config({
path: path.resolve(process.env.PWD, 'test', 'helpers', './.env')
})
global.AssertionError = chai.AssertionError
global.expect = chai.expect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment