Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
lab-transform-typescript
Advanced tools
Readme
lab-transform-typescript
transforms TypeScript for use with lab
,
permitting npm test
without having to transpile first in a pretest
script.
Usage:
npm install --save-dev lab-transform-typescript
lab --sourcemaps --transform node_modules/lab-transform-typescript
If you'd like typings
support for lab
and code
, also:
typings install --save --global github:garthk/lab-transform-typescript/typings-local/lab.d.ts
typings install --save --global github:garthk/lab-transform-typescript/typings-local/code.d.ts
The typings for code
are thorough. The typings for lab
are pretty thin.
I'd much appreciate feedback on and pull requests for improvements on either.
Issues:
#1
aka hapijs/lab#614
: lab --coverage
output shows
the transpiled JavaScript, not the source TypeScript.Caveats:
Which version of typescript
you get depends on how you installed it:
npm install
as above, you'll get the typescript
from your project's node_modules
npm link
to take a reference to lab-transform-typescript
while fixing a bug in it, you'll get the typescript
from lab-transform-typescript/node_modules
Environment Variables:
Set DEBUG=*
or DEBUG=lab-transform-typescript
to see a version report and configuration loading details on stderr.
Set TSCONFIG
to override TypeScript's default search for tsconfig.json
, as if you'd set -p
on the tsc
command line.
Change Log:
TSCONFIG
envar to override location)typescript
from dependencies
to devDependencies
for testing and peerDependencies
for production uselab
FAQs
transform TypeScript for the lab testing framework
The npm package lab-transform-typescript receives a total of 2,316 weekly downloads. As such, lab-transform-typescript popularity was classified as popular.
We found that lab-transform-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.