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

Server: NPM Scripts for Testing #7

Open
rwieruch opened this issue Jun 20, 2018 · 3 comments
Open

Server: NPM Scripts for Testing #7

rwieruch opened this issue Jun 20, 2018 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@rwieruch
Copy link
Member

At the moment, there are two scripts in order to test the server. One to start the test server and the second one to execute the tests. Is there a way to put this into one command for being able to test in only one command line tab? I am looking for something like this but it didn't work for me.

@rwieruch rwieruch added the help wanted Extra attention is needed label Jun 20, 2018
@pmosconi
Copy link

pmosconi commented Jan 1, 2019

The only way I can think of is refactoring the code and moving database seeding and server startup within a test setup file.
I am creating a pull request for this.

@Sharlaan
Copy link

Sharlaan commented Jan 2, 2019

Hello
I've been working on a Typescript version of this repo (intending to make a PR once done)
It is still WIP but i refactored a few things already, including e2e tests with Jest*, running in one command.

You can run it from here

Hope it helps ;)

PS don't hesitate to comment the last commit.

@rwieruch
Copy link
Member Author

rwieruch commented Jan 2, 2019

Thank you for sharing @Sharlaan 👍 A TypeScript version would be great for #41 but I would want to try to only introduce TS and nothing else to keep the tutorial still relevant :)

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

3 participants