I made a little project to use jest, a new architecture pattern, and some features such as dependency injection.
Explore the docs »
·
Report Bug
·
Request Feature
I wanted to get a deeper understanding of some more advanced features, so I decided to build this little project using what I've been learning so far, such as unitary tests with jest, dependency injection, and a better architecture to stop using only MVC.
I know I have a lot to improve, but this it's just a taste of what things I've improved until now.
In this project, I decided to use typeorm, which I find fantastic, because of its simple way to configure, and also because it has a lot of power when combined with typescript.
And to give the code a pattern, I used the VsCode prettier extension.
- Clone the repo
git clone https://github.com/lucfersan/jest-tests
- Install NPM packages
yarn
- Create a docker container
docker run --name jest-tests -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
- Create database named: jest_tests
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Lucas Fernandes - fernandes.lucas11@outlook.com