mfix22 / gest Goto Github PK
View Code? Open in Web Editor NEW๐จโ๐ป A sensible GraphQL testing tool - test your GraphQL schema locally and in the cloud
License: MIT License
๐จโ๐ป A sensible GraphQL testing tool - test your GraphQL schema locally and in the cloud
License: MIT License
Use Node's readline
completer functions to tab-autocomplete queries based on schema.
I'm trying to use gest to test a GraphQL endpoint that is hosted at: http://api/graphql
; that's because this is a docker-compose setup, which uses bare service names to access other containers.
This fails due to the regex at
Line 44 in a43384c
.
).Running gest --all
should search for all ` queries and print which succeed and which fail.
Files should match: "*.(query|graphql)$"
$ gest '{
test
}'
I am getting the "ReferenceError: describe is not defined" error while running test case.
Same issue reported in stack overflow
https://stackoverflow.com/questions/46193653/referenceerror-describe-is-not-defined
axios
--baseUrl
and without)When i am testing my app....i am getting error "TypeError: Cannot read property 'operation' of undefined". i have used mocha and node both.
this is my code which is in /test/index.js
const should = require('should');
const zapier = require('zapier-platform-core');
const App = require('../index');
const appTester = zapier.createAppTester(App);
describe('My App', () => {
it('should load recipes', (done) => {
const triggerPointer = 'triggers.post';
const bundle = {
// NEW CODE
inputData: {
style: 'mediterranean'
}
};
appTester(App.triggers.post.operation.perform, bundle)
.then(results => {
should(results.length).above(1);
const firstResult = results[0];
console.log('test result: ', firstResult)
should(firstResult.name).eql('name 1');
should(firstResult.directions).eql('directions 1');
done();
})
.catch(done);
});
});
describe('My App', () => {
describe('create recipe create', () => {
it('should create a new recipe', (done) => {
const bundle = {
inputData: {
name: 'Smith Family Recipe',
directions: '1. Order out :)',
authorId: 1
}
};
appTester(App.creates.calendar.operation.perform, bundle)
.then((result) => {
result.should.have.property('name');
done();
})
.catch(done);
});
});
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.