Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@side/jest-runtime

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@side/jest-runtime

Custom runtime for Jest which addresses memory leak issue

  • 1.0.0-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@side/jest-runtime

Custom runtime for Jest which addresses memory leak when using Typescript

Build Status Coverage semantic-release Code Style

NOTE This package was intentionally left as JS instead of being converted to TS because it is only a slight modification of existing Jest code

  1. Install SWC if you haven't already @swc/core @swc/jest

  2. Make sure to configure SWC if you haven't already:

    {
       "jsc": {
          "parser": {
             "syntax": "typescript",
             "decorators": true
          },
          "transform": {
             "legacyDecorator": true,
             "decoratorMetadata": true
          }
       }
    }
    
  3. Install custom runtime: yarn add @side/jest-runtime

  4. Use within jest.config.js:

    module.exports = {
      transform: {
        '^.+\\.ts$': '@swc/jest',
      },
      runtime: '@side/jest-runtime',
    };
    

This is the template repository for creating additional typescript libraries. Once a new repository has been created off this template, follow the steps below to finalize the initial setup process:

  1. Find all relevant TODO: references and make adjustments accordingly
  2. Start making PRs with basic functionality - continue to next section once library is publishable

Enable Publishing

  1. Add your new repository to the repositories with access to NPM_PUBLISH_TOKEN org level secret
  2. Create a PR removing if: ${{ false }} from release workflow
  3. Merge above mentioned PR to create first release - this will take a while since all PRs up until this first release will be marked as released by semantic-release

FAQs

Package last updated on 31 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc