microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.3k stars 2.76k forks source link

None of the tests pass. #304

Closed trydalch closed 3 years ago

trydalch commented 3 years ago

I just cloned it down, installed with yarn, and then ran yarn test and all 10 tests timed out.

Is this expected?

I also tried running the tests with npm, just in case, but same result.

peterblazejewicz commented 3 years ago

@trydalch can you make sure yarn build or npm run build works fine on your instance? jest just used transpileer under the hood, tests should work if the project transpiles ok

yipmc commented 3 years ago

You will need to setup MongoDB before running the tests. Run a MongoDB instance locally or use a cloud instance and configure your .env file accordingly.

peterblazejewicz commented 3 years ago

Yes, that's correct! @yipmc thx!