Socket
Socket
Sign inDemoInstall

@tapjs/typescript

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/typescript

a built-in tap extension that adds typescript support


Version published
Weekly downloads
124K
decreased by-43.13%
Maintainers
2
Weekly downloads
 
Created
Source

@tapjs/typescript

A default tap plugin providing typescript support.

USAGE

This plugin is installed with tap by default. If you had previously removed it, you can tap plugin add @tapjs/typescript to bring it back.

When enabled, this plugin does the following things:

  • adds ts, tsx, cts, mts, and jsx to the file extensions that tap will load.
  • adds ts-node/esm to the loader set.
  • adds the typecheck config flag, which is true by default

The typecheck config defaults to being set, and type checking your tests is generally a good idea. However, it is also often considerably slower, adding as much as half a second to each test suite file, which can be painful if you have a lot of test files.

You can disable type checking with --no-typecheck on the command line, or by putting typecheck: false in .taprc, or { "tap": { "typecheck": false }} in package.json, or TAP_TYPECHECK=0 in the environment.

If you find that your typescript tests are taking too long to run, and decide to disable type checking, it is best to enable it in CI, for example by setting TAP_TYPECHECK=1 in the environment.

The "skipLibCheck": true option in tsconfig will also speed things up a bit, at the expense of some type safety.

Keywords

FAQs

Package last updated on 18 Sep 2023

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