mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
commit
188916b0eb
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
|||
"@types/node": "^7.0.12",
|
||||
"@types/sinon": "^2.1.2",
|
||||
"chai": "^3.5.0",
|
||||
"graphql": "^0.9.2",
|
||||
"graphql": "^0.10.1",
|
||||
"istanbul": "1.0.0-alpha.2",
|
||||
"lerna": "2.0.0-rc.4",
|
||||
"mocha": "^3.2.0",
|
||||
|
|
|
@ -111,7 +111,7 @@ describe('runQuery', () => {
|
|||
|
||||
it('sends stack trace to error if in an error occurs and debug mode is set', () => {
|
||||
const query = `query { testError }`;
|
||||
const expected = /at resolveOrError/;
|
||||
const expected = /at resolveFieldValueOrError/;
|
||||
const logStub = stub(console, 'error');
|
||||
return runQuery({
|
||||
schema,
|
||||
|
|
|
@ -644,7 +644,7 @@ export default (createApp: CreateAppFunc, destroyApp?: DestroyAppFunc) => {
|
|||
});
|
||||
|
||||
it('sends stack trace to error if debug mode is set', () => {
|
||||
const expected = /at resolveOrError/;
|
||||
const expected = /at resolveFieldValueOrError/;
|
||||
const stackTrace = [];
|
||||
const origError = console.error;
|
||||
console.error = (...args) => stackTrace.push(args);
|
||||
|
@ -665,7 +665,7 @@ export default (createApp: CreateAppFunc, destroyApp?: DestroyAppFunc) => {
|
|||
|
||||
it('sends stack trace to error log if debug mode is set', () => {
|
||||
const logStub = stub(console, 'error');
|
||||
const expected = /at resolveOrError/;
|
||||
const expected = /at resolveFieldValueOrError/;
|
||||
app = createApp({graphqlOptions: {
|
||||
schema,
|
||||
debug: true,
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
},
|
||||
"homepage": "https://github.com/apollostack/graphql-server#readme",
|
||||
"peerDependencies": {
|
||||
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0"
|
||||
"graphql": "^0.9.0 || ^0.10.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@types/graphql": "^0.9.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue