Skip to content
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

Global app server variable for tests #66

Open
albertcito opened this issue Nov 6, 2020 · 0 comments
Open

Global app server variable for tests #66

albertcito opened this issue Nov 6, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@albertcito
Copy link
Owner

I tried to do it configuring globalSetup with a function to call Express server and save it in global variable. It prints this error:

SyntaxError: Cannot use import statement outside a module

It's a Jest issue that will be solved https://stackoverflow.com/questions/60372790/node-v13-jest-es6-native-support-for-modules-without-babel-or-esm/61653104#61653104

When it's ready, I'll try again to use the global variable in different files.

@albertcito albertcito added the help wanted Extra attention is needed label Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant