fullstack-apollo-express-postgresql-boilerplate icon indicating copy to clipboard operation
fullstack-apollo-express-postgresql-boilerplate copied to clipboard

Server: NPM Scripts for Testing

Open rwieruch opened this issue 6 years ago • 3 comments

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 avatar Jun 20 '18 15:06 rwieruch

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.

pmosconi avatar Jan 01 '19 16:01 pmosconi

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.

Sharlaan avatar Jan 02 '19 10:01 Sharlaan

Thank you for sharing @Sharlaan 👍 A TypeScript version would be great for https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/issues/41 but I would want to try to only introduce TS and nothing else to keep the tutorial still relevant :)

rwieruch avatar Jan 02 '19 10:01 rwieruch