Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move dedent into new __testUtils__ folder #2572

Merged
merged 1 commit into from
May 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 2 additions & 1 deletion src/error/__tests__/GraphQLError-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
3 changes: 2 additions & 1 deletion src/language/__tests__/lexer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { inspect as nodeInspect } from 'util';
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { GraphQLError } from '../../error/GraphQLError';
Expand Down
3 changes: 2 additions & 1 deletion src/language/__tests__/parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { inspect as nodeInspect } from 'util';
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { Kind } from '../kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/printLocation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { Source } from '../source';
import { printSourceLocation } from '../printLocation';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../parser';
import { print } from '../printer';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/schema-parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { kitchenSinkSDL } from '../../__fixtures__/index';

Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/schema-printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../parser';
import { print } from '../printer';
Expand Down
2 changes: 1 addition & 1 deletion src/type/__tests__/schema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { printSchema } from '../../utilities/printSchema';

Expand Down
3 changes: 2 additions & 1 deletion src/type/__tests__/validation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { parse } from '../../language/parser';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/buildASTSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/buildClientSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { graphqlSync } from '../../graphql';

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/concatAST-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../../language/parser';
import { print } from '../../language/printer';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/extendSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/introspectionFromSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { GraphQLSchema } from '../../type/schema';
import { GraphQLString } from '../../type/scalars';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/lexicographicSortSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { printSchema } from '../printSchema';
import { buildSchema } from '../buildASTSchema';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/printSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { DirectiveLocation } from '../../language/directiveLocation';

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/separateOperations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../../language/parser';
import { print } from '../../language/printer';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/stripIgnoredCharacters-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { parse } from '../../language/parser';
Expand Down