skip to Main Content

Jest watch interactive with docker-compose – Phpmyadmin

I have this docker compose file: version: "2.4" services: mysql: image: mysql:8.0 environment: - MYSQL_ROOT_PASSWORD=mypasswd healthcheck: test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] timeout: 20s retries: 10 phpmyadmin: image: phpmyadmin/phpmyadmin:latest ports: - 8080:80 environment: - PMA_HOST=mysql depends_on: mysql: condition: service_healthy app:…

VIEW QUESTION

Redis – Jest + nest.js, absolute paths for tests

Here's my jest config inside of package.json: "jest": { "moduleFileExtensions": [ "js", "json", "ts" ], "moduleDirectories":["node_modules", "src"], // tried to solve the issue like that "rootDir": "src", "testRegex": ".spec.ts$", "transform": { "^.+\.(t|j)s$": "ts-jest" }, "coverageDirectory": "../coverage", "testEnvironment": "node" } AFAIK…

VIEW QUESTION

Testing Redis functionalities with Jest

I have the following file that connect to a redis database: index.js const redis = require('redis'); const logger = require('../logger'); const config = require('../env'); const client = redis.createClient({ host: config.redis.host, port: config.redis.port }); const connect = () => { client.on('connect',…

VIEW QUESTION
Back To Top
Search