Teste de cobertura utilizando socket.io
.
Coverage test using socket.io
.
Baseado no artigo / Based on the article: 'How to test Socket.io with Jest on backend (Node.js)?'
⚠️ Necessita do NodeJS. O projeto foi testado utilizando a versão16.17.1
.
⚠️ Requires NodeJS. The project was tested using version16.17.1
.
npm i # Install the packages / Instale os pacotes
npm test # Run the `test` script / Rode o script `test`
⚠️ Necessita do Docker instalado no host para funcionar.
⚠️ Requires Docker installed on the host to work.
docker run -it --rm -v $(pwd):/app node:16.17.1 npm --prefix=/app test