Skip to content

Instantly share code, notes, and snippets.

@Slayer95

Slayer95/main.js Secret

Created April 10, 2019 22:28
Show Gist options
  • Save Slayer95/b78c77c15112c8da0c4ebd5a42236c1d to your computer and use it in GitHub Desktop.
Save Slayer95/b78c77c15112c8da0c4ebd5a42236c1d to your computer and use it in GitHub Desktop.
Test suite initialization
before('initialization', function () {
this.timeout(0); // Remove timeout limitation
process.on('unhandledRejection', err => {
// I'd throw the err, but we have a heisenbug on our hands and I'd
// rather not have it screw with Travis in the interim
console.log(err);
});
// Preload dex
global.Dex = require('../.sim-dist/dex').includeData();
require('../.sim-dist');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment