Created
March 13, 2017 18:35
-
-
Save jerolan/41714b9e252e6408327ff98926ace845 to your computer and use it in GitHub Desktop.
Basic chai set up for bdd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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