Skip to content

Conversation

@Varun5711
Copy link

Sure! Here’s a Pull Request (PR) description tailored for your contribution to add a Dockerfile and optional docker-compose.yml for Jest development:

🚀 Add Docker Support for Jest Development

🧩 Description

This PR introduces a Dockerfile (and optionally a docker-compose.yml) that enables contributors to run Jest in a consistent containerized development environment.

✅ What’s Included
• Dockerfile
• Uses Node.js 20 with Corepack to support yarn@4.9.2
• Installs dependencies via yarn install --immutable
• Runs yarn test as the default command
• Optional: docker-compose.yml
• Mounts the project directory for live development
• Uses a named volume for node_modules to avoid conflicts

💡 Motivation

Many contributors face setup friction due to:
• Yarn version mismatches
• OS differences
• Node version inconsistencies

This Docker setup ensures:
• A clean, reproducible environment
• Quick onboarding for new contributors
• Easier CI testing locally

🧪 How to Use

With Docker only:

docker build -t jest-dev .
docker run --rm jest-dev

With Docker Compose:

docker compose up --build

📎 Related Discussions

Refers to feature request in #9105

@netlify
Copy link

netlify bot commented Jul 11, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6c6edd8
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/687186cc9086fd00080f8868
😎 Deploy Preview https://deploy-preview-15736--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 11, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 11, 2025

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@15736

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@15736

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@15736

create-jest

npm i https://pkg.pr.new/create-jest@15736

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@15736

expect

npm i https://pkg.pr.new/expect@15736

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@15736

jest

npm i https://pkg.pr.new/jest@15736

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@15736

jest-circus

npm i https://pkg.pr.new/jest-circus@15736

jest-cli

npm i https://pkg.pr.new/jest-cli@15736

jest-config

npm i https://pkg.pr.new/jest-config@15736

@jest/console

npm i https://pkg.pr.new/@jest/console@15736

@jest/core

npm i https://pkg.pr.new/@jest/core@15736

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@15736

jest-diff

npm i https://pkg.pr.new/jest-diff@15736

jest-docblock

npm i https://pkg.pr.new/jest-docblock@15736

jest-each

npm i https://pkg.pr.new/jest-each@15736

@jest/environment

npm i https://pkg.pr.new/@jest/environment@15736

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@15736

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@15736

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@15736

@jest/expect

npm i https://pkg.pr.new/@jest/expect@15736

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@15736

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@15736

@jest/globals

npm i https://pkg.pr.new/@jest/globals@15736

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@15736

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@15736

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@15736

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@15736

jest-message-util

npm i https://pkg.pr.new/jest-message-util@15736

jest-mock

npm i https://pkg.pr.new/jest-mock@15736

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@15736

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@15736

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@15736

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@15736

jest-resolve

npm i https://pkg.pr.new/jest-resolve@15736

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@15736

jest-runner

npm i https://pkg.pr.new/jest-runner@15736

jest-runtime

npm i https://pkg.pr.new/jest-runtime@15736

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@15736

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@15736

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@15736

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@15736

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@15736

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@15736

@jest/transform

npm i https://pkg.pr.new/@jest/transform@15736

@jest/types

npm i https://pkg.pr.new/@jest/types@15736

jest-util

npm i https://pkg.pr.new/jest-util@15736

jest-validate

npm i https://pkg.pr.new/jest-validate@15736

jest-watcher

npm i https://pkg.pr.new/jest-watcher@15736

jest-worker

npm i https://pkg.pr.new/jest-worker@15736

pretty-format

npm i https://pkg.pr.new/pretty-format@15736

commit: 1a20cbf

@Varun5711 Varun5711 closed this Jul 11, 2025
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant