GithubHelp home page GithubHelp logo

nodejs-tdd-jest's Introduction

Nodejs-TDD-Jest

Teste de integração com backend Nodejs utilizando framework Jest

Crie a database

Rode o comando abaixo para criar a imagem docker do postegres na sua máquina:

docker run --name <nome-da-database> -e POSTGRES_PASSWORD=<senha-de-conexao> -d -p 5432:5432 postgres

Configure o seu arquivo .env

Altere o arquivo .env.example para apenas .env

Insira suas credenciais de acesso:

DB_HOST=localhost
DB_USER=postgres
DB_PASS= <senha-de-conexao>
DB_NAME=postgres

Instale as dependencias

yarn ou npm install

Rode o teste

yarn test ou npm test

nodejs-tdd-jest's People

Contributors

brunomktd avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.