mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Refined the debugging
This commit is contained in:
23
test/index.js
Normal file
23
test/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
//the library to test
|
||||
const sineQL = require('../source/index.js');
|
||||
|
||||
//the dummy values
|
||||
const schema = `
|
||||
scalar Date
|
||||
|
||||
type Book {
|
||||
String title
|
||||
Date published
|
||||
}
|
||||
|
||||
type Author {
|
||||
String name
|
||||
Book books
|
||||
}
|
||||
`;
|
||||
|
||||
const handler = null;
|
||||
|
||||
//run the function in debug mode (builds type graph)
|
||||
const sine = sineQL(schema, handler, { debug: true });
|
||||
|
||||
11
test/package.json
Normal file
11
test/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "sineql-test",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Kayne Ruse",
|
||||
"license": "ISC"
|
||||
}
|
||||
Reference in New Issue
Block a user