Giter Club home page Giter Club logo

jest-to-node's Introduction

Usage

npx jest-to-node path/to/jest/tests path/to/output

Local setup

Step 1: Local Build

First, compile your TypeScript code to JavaScript using your build script:

npm run build

Step 2: Link Locally

Before you publish the package, you can use npm link to simulate installing your package globally. This creates a symlink in the global folder that links to the local development folder.

  • Link your package globally:

    Navigate to your project directory (where your package.json is located) and run:

     npm link

    This command makes your CLI tool available globally on your system as if it were installed via npm.

  • Test the command:

    You can now run your tool from anywhere using the command name defined in the bin section of your package.json. For example:

    jest-to-node path/to/jest/tests path/to/output

    Replace path/to/jest/tests and path/to/output with actual paths on your local machine where you have some test files ready to be transformed.

jest-to-node's People

Contributors

goranmandic91 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.