Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago154 committed Jul 18, 2020
1 parent 545c1cd commit fd82847
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 22 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: node_js
node_js:
- "10"
- "12"

sudo: false
after_success: npm test
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
language: node_js
node_js:
- "12"

sudo: false
after_success: npm test
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">

![npm](https://img.shields.io/npm/dy/graphql-import-files?color=%2303a1fc&style=for-the-badge)
[![npm](https://img.shields.io/npm/dy/graphql-import-files?color=%2303a1fc&style=for-the-badge)](https://npm-stat.com/charts.html?package=graphql-import-files)

</div>

Expand Down
28 changes: 16 additions & 12 deletions __tests__/__snapshots__/loadFiles.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

exports[`loadFiles success should build the schema even with files with separate queries 1`] = `
GraphQLSchema {
"__allowedLegacyNames": Array [],
"__validationErrors": undefined,
"_directives": Array [
"@skip",
"@include",
"@deprecated",
"@specifiedBy",
],
"_implementations": Object {},
"_mutationType": null,
"_possibleTypeMap": Object {},
"_implementationsMap": Object {},
"_mutationType": undefined,
"_queryType": "Query",
"_subscriptionType": null,
"_subTypeMap": Object {},
"_subscriptionType": undefined,
"_typeMap": Object {
"Boolean": "Boolean",
"Int": "Int",
Expand All @@ -30,6 +30,7 @@ GraphQLSchema {
"__TypeKind": "__TypeKind",
},
"astNode": Object {
"description": undefined,
"directives": Array [],
"kind": "SchemaDefinition",
"loc": Object {
Expand Down Expand Up @@ -62,25 +63,26 @@ GraphQLSchema {
},
],
},
"extensionASTNodes": undefined,
"description": undefined,
"extensionASTNodes": Array [],
"extensions": undefined,
}
`;

exports[`loadFiles success should valid schema with many file 1`] = `
GraphQLSchema {
"__allowedLegacyNames": Array [],
"__validationErrors": undefined,
"_directives": Array [
"@skip",
"@include",
"@deprecated",
"@specifiedBy",
],
"_implementations": Object {},
"_mutationType": null,
"_possibleTypeMap": Object {},
"_implementationsMap": Object {},
"_mutationType": undefined,
"_queryType": "Query",
"_subscriptionType": null,
"_subTypeMap": Object {},
"_subscriptionType": undefined,
"_typeMap": Object {
"Boolean": "Boolean",
"Float": "Float",
Expand All @@ -100,6 +102,7 @@ GraphQLSchema {
"__TypeKind": "__TypeKind",
},
"astNode": Object {
"description": undefined,
"directives": Array [],
"kind": "SchemaDefinition",
"loc": Object {
Expand Down Expand Up @@ -132,7 +135,8 @@ GraphQLSchema {
},
],
},
"extensionASTNodes": undefined,
"description": undefined,
"extensionASTNodes": Array [],
"extensions": undefined,
}
`;
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"graphql": "^15.3.0",
"jest": "^26.1.0"
},
"dependencies": {
Expand Down

0 comments on commit fd82847

Please sign in to comment.