Skip to content

Commit 7bfbbdd

Browse files
authored
Merge pull request #7068 from MicrosoftDocs/master637678406283583025
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents e752ed0 + 73984d5 commit 7bfbbdd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/javascript/unit-testing-javascript-with-visual-studio.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Unit testing JavaScript and TypeScript"
33
description: Visual Studio provides support unit testing JavaScript and TypeScript code using the Node.js Tools for Visual Studio
4-
ms.date: "03/18/2021"
4+
ms.date: "09/20/2021"
55
ms.topic: "how-to"
66
ms.devlang: javascript
77
author: "mikejo5000"
@@ -264,10 +264,17 @@ For TypeScript, unit tests are run against the generated JavaScript code.
264264
265265
## <a name="addingFramework"></a>Add support for a unit test framework
266266

267-
You can add support for additional test frameworks by implementing the discovery and execution logic using JavaScript. You do this by adding a folder with the name of the test framework under:
267+
You can add support for additional test frameworks by implementing the discovery and execution logic using JavaScript.
268+
269+
> [!NOTE]
270+
> For ASP.NET Core, add the NuGet package [Microsoft.JavaScript.UnitTest](https://www.nuget.org/packages/Microsoft.JavaScript.UnitTest/) to your project to add support.
271+
272+
You do this by adding a folder with the name of the test framework under:
268273

269274
`<VisualStudioFolder>\Common7\IDE\Extensions\Microsoft\NodeJsTools\TestAdapter\TestFrameworks`
270275

276+
If you don't see the `NodeJsTools` folder in an ASP.NET Core project, add the Node.js development workload using the Visual Studio Installer. This workload includes support for unit testing JavaScript and TypeScript.
277+
271278
This folder has to contain a JavaScript file with the same name which exports the following two functions:
272279

273280
* `find_tests`

0 commit comments

Comments
 (0)