Skip to content

Commit

Permalink
Remove jest-each for internal each installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed May 1, 2018
1 parent ee82b53 commit fbb5572
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions packages/jest-jasmine2/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type Runtime from 'jest-runtime';

import path from 'path';
import fs from 'graceful-fs';
import each from 'jest-each';
import installEach from './each';
import {getCallsite} from 'jest-util';
import sourcemapSupport from 'source-map-support';
import JasmineReporter from './reporter';
Expand Down Expand Up @@ -64,35 +64,7 @@ async function jasmine2(

jasmineAsyncInstall(environment.global);

environment.global.it.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.it(title, test);

environment.global.fit.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.fit(title, test);

environment.global.xit.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.xit(title, test);

environment.global.describe.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.describe(title, test);

environment.global.xdescribe.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.xdescribe(title, test);

environment.global.fdescribe.each = (...args) => (title, test) =>
each
.withGlobal(environment.global)(...args)
.fdescribe(title, test);
installEach(environment);

environment.global.test = environment.global.it;
environment.global.it.only = environment.global.fit;
Expand Down

0 comments on commit fbb5572

Please sign in to comment.