From 22c5e842d6b7f6aa4c35dd418e36cb5842f92dfa Mon Sep 17 00:00:00 2001 From: Ziyang Li <152387247+ziyang-works@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:33:09 +0800 Subject: [PATCH] replace `npm add` with `npm install -D` --- node.js/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.js/typescript.md b/node.js/typescript.md index 808e29c46..519e0fe08 100644 --- a/node.js/typescript.md +++ b/node.js/typescript.md @@ -64,7 +64,7 @@ Run your Jest tests with preset `ts-jest` without precompiling TypeScript files. 1. Install `ts-jest` locally: ```sh - npm add ts-jest + npm install -D ts-jest ``` 2. Tell Jest to use the preset `ts-jest`, e.g. in your _jest.config.js_: