Skip to content

Commit

Permalink
Fixes #481 - removed require babel-polyfill line from init template
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz committed Jan 8, 2018
1 parent 831e611 commit 8217935
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions detox/local-cli/templates/mocha.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const mochaOptsContent= '--recursive --timeout 120000 --bail'
const mochaOptsContent = '--recursive --timeout 120000 --bail';
const firstTestContent = `describe('Example', () => {
beforeEach(async () => {
await device.reloadReactNative();
Expand All @@ -17,9 +17,8 @@ const firstTestContent = `describe('Example', () => {
await element(by.id('world_button')).tap();
await expect(element(by.text('World!!!'))).toBeVisible();
});
})`
const initjsContent = `require('babel-polyfill');
const detox = require('detox');
})`;
const initjsContent = `const detox = require('detox');
const config = require('../package.json').detox;
before(async () => {
Expand All @@ -28,8 +27,8 @@ before(async () => {
after(async () => {
await detox.cleanup();
});`
});`;

exports.initjs = initjsContent
exports.firstTest = firstTestContent
exports.runnerConfig = mochaOptsContent
exports.initjs = initjsContent;
exports.firstTest = firstTestContent;
exports.runnerConfig = mochaOptsContent;

0 comments on commit 8217935

Please sign in to comment.