jest-testcontainers

(β˜… 126)

Jest preset for running docker containers with your tests

  • .gitignore
  • .gitlab-ci.yml
  • .npmignore
  • .nvmrc
  • .travis.yml
  • DOC.md
  • FAQ.md
  • jest-preset.js
  • jest.config.js
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • tsconfig.json
  • tslint.json

# Installation Guide

1. Get the code
git clone https://github.com/Trendyol/jest-testcontainers

Downloads the entire project code from GitHub to your computer.

cd jest-testcontainers

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
Create a file called `jest-testcontainers-config.js` and put it to root of your project, where you run *npm test*. If you would like to put this file somewhere else, you can use the *JEST_TESTCONTAINERS_CONFIG_PATH* environment variable to define a relative or absolute path. A sample configuration file;

Type this command into your terminal and run it.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation