Skip to content

Conversation

@ManigandanCR-7
Copy link

Summary :

Added build, test, and lint scripts to the package.json of jest-runtime to streamline development and make the package usable independently outside the Jest monorepo. Updated all workspace .

Motivation :

Previously, jest-runtime was tightly coupled to the Jest monorepo using workspace:* dependencies and lacked development scripts. This made it difficult for developers to use or contribute to the package independently. Adding scripts for build, test, and lint, and replacing workspace dependencies with versioned packages, resolves this limitation and provides a ready-to-use, publishable setup.

Test Plan :

  • Build Script:
    Ran npm run build and verified that ./build/index.js and index.d.ts are generated correctly.

  • Test Script:
    Ran npm test and confirmed all Jest tests execute without errors.

  • Lint Script:
    Ran npm run lint on the src directory and confirmed ESLint detects no critical issues.

  • Dependency Verification:
    Installed the package in a fresh project to ensure all dependencies resolve correctly and the package works independently from the monorepo.

  • Node Version Compliance:
    Verified the package runs successfully on Node versions >=18.14.0.

Added build, test, and lint scripts to package.json
@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for jestjs failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit cb3eaf9
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/693176adf37d970008924ec6

@linux-foundation-easycla
Copy link

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant