UNPKG
graphql-errors
Version:
latest (2.1.0)
2.1.0
2.0.2
2.0.1
2.0.0
1.1.2
1.1.1
1.1.0
1.0.1
Better error handling for GraphQL
github.com/kadirahq/graphql-errors
kadirahq/graphql-errors
graphql-errors
/
scripts
/
mocha_runner.js
9 lines
(7 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
require
(
'babel-core/register'
);
require
(
'babel-polyfill'
); process.mocha =
true
; process.on(
'unhandledRejection'
,
function
(error)
{ console.
error
(
'Unhandled Promise Rejection:'
); console.
error
(
error
&&
error
.stack ||
error
); });