-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beforeAll is execute after tests begins #124
Comments
I'm wondering if you meant |
userIsLoggedIn is a method factory. export function userIsLoggedIn() {
return () => {
nock(process.env.AUTH_URL!)
.get('/auth')
.reply(200, {
id: 1
})
}
} |
The problem is not in that function. In another function, I get data from |
Sorry, I made a mistake. The problem is not in jest-cucumber |
I'm using jest-cucumber to run my tests. In definition of feature, I call
setup()
method that will setbeforeAll
,beforeEach
andafterEach
callbacks. ThebeforeAll
callback will executestartInTestMode
method, which will get up the server application that will be used in tests. When I run the tests, things that should be defined instartInTestMode
are not defined yet. When I debug de code, thebeforeAll
is executed after tests begins.The text was updated successfully, but these errors were encountered: