mirror of
https://github.com/expo/apollo-codegen.git
synced 2026-11-14 08:48:05 -10:00
16 lines
399 B
TypeScript
16 lines
399 B
TypeScript
import * as path from 'path';
|
|
|
|
import { loadAndMergeQueryDocuments } from '../src/loading';
|
|
|
|
describe('Validation', () => {
|
|
test(`should extract gql snippet from javascript file`, () => {
|
|
const inputPaths = [
|
|
path.join(__dirname, './fixtures/starwars/gqlQueries.js'),
|
|
];
|
|
|
|
const document = loadAndMergeQueryDocuments(inputPaths);
|
|
|
|
expect(document).toMatchSnapshot();
|
|
})
|
|
});
|