jest-testcontainers
Jest preset for running docker containers with your tests
File Explorer
Download Latest Version (.zip)- example.spec.js
- jest-testcontainers-config.js
- jest.config.js
- example.spec.ts
- jest-testcontainers-config.js
- jest.config.js
- docker-compose.yml
- example.spec.js
- jest-testcontainers-config.js
- jest.config.js
- README.md
- config.spec.ts
- config.ts
- containers.spec.ts
- containers.ts
- environment.spec.ts
- environment.ts
- index.ts
- setup.ts
- teardown.spec.ts
- teardown.ts
- global.d.ts
- .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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
