Jest: Inconsistent test behavior

Created on 16 Nov 2017  路  1Comment  路  Source: facebook/jest

Do you want to request a _feature_ or report a _bug_?

What is the current behavior?

My tests pass sometimes and fail at other times.

This is my repo - https://github.com/yasserhussain1110/koa-graphql-jest
This is the specific test file - https://github.com/yasserhussain1110/koa-graphql-jest/blob/master/test/rest.test.js

I saw it mentioned in the docs that this can happen if you are not tearing down your database properly but I am resetting my database before each test still I face this issue.

If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.

clone - https://github.com/yasserhussain1110/koa-graphql-jest
and run the tests using

npm run test

What is the expected behavior?

Tests should always pass

>All comments

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephenlautier picture stephenlautier  路  3Comments

hramos picture hramos  路  3Comments

samzhang111 picture samzhang111  路  3Comments

jardakotesovec picture jardakotesovec  路  3Comments

gustavjf picture gustavjf  路  3Comments