@luvio/graphql-parser 0.99.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +0,0 @@
1
- import { parseLuvioSchema } from '../main';
2
- import { readFileSync } from 'fs';
3
- import path from 'path';
4
-
5
- function readSchemaAsString(fileName: string) {
6
- const fullPath = path.join(__dirname, 'data', fileName);
7
- const buffer = readFileSync(fullPath);
8
- return buffer.toString();
9
- }
10
-
11
- describe('Luvio GraphQL Schema Parsing', () => {
12
- it('default implementation can parse github api', () => {
13
- const schema = parseLuvioSchema(readSchemaAsString('github.graphql'), 'githubSchema');
14
- expect(schema).toMatchSnapshot();
15
- });
16
-
17
- it('default implementation can parse star wars api', () => {
18
- const schema = parseLuvioSchema(readSchemaAsString('swapi.graphql'), 'swapiSchema');
19
- expect(schema).toMatchSnapshot();
20
- });
21
- });