Skip to content

Commit

Permalink
Relay: Use GraphQL RFC for Relay Tests
Browse files Browse the repository at this point in the history
Summary: Makes a couple changes that allow us to use the GraphQL RFC tests (that currently exist on GitHub) internally in `static_upstream/relay`.

 - Change Jest to use `babel-relay-plugin` and `testschema.json` for tests in `static_upstream/relay`.
 - Use the OSS forks when running tests without `RelayTestUtils.unmockRelayForFB()`.

Reviewed By: @wincent

Differential Revision: D2414174
  • Loading branch information
yungsters committed Sep 5, 2015
1 parent 577b183 commit bd03ff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/__mocks__/RelayTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,11 @@ var RelayTestUtils = {

unmockRelayForFB() {
RelayTestUtils.unmockRelay();
global.__RELAYFB__ = true;
global.__RELAYOSS__ = false;
},

unmockRelay() {
global.__RELAYOSS__ = true;
jest
// Utilities
.dontMock('areEqual')
Expand Down

0 comments on commit bd03ff9

Please sign in to comment.