Skip to content

Commit 1199756

Browse files
MaryannahthePunderWoman
authored andcommitted
docs: update documentation for Vitest use (angular#62798)
PR Close angular#62798
1 parent c6cd636 commit 1199756

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

adev/src/content/guide/testing/experimental-unit-test.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ The Angular CLI provides an experimental unit test system that can use [Vitest](
55
IMPORTANT: This experimental unit testing system requires the use of the `application` build system.
66
The `application` build system is the default for all newly created projects.
77

8+
## Installing dependencies
9+
10+
Some packages are required for the new builder to work. In order to install the new packages, run the following command :
11+
12+
<docs-code language="bash">
13+
14+
npm install vitest jsdom --save-dev
15+
16+
</docs-code>
17+
18+
If no other projects in your workspace use Karma, run the following command to uninstall the corresponding packages :
19+
20+
<docs-code language="bash">
21+
22+
npm uninstall karma karma-chrome-launcher karma-coverage karma-jasmine karma-jasmine-html-reporter --save-dev
23+
24+
</docs-code>
25+
826
## Set up testing
927

1028
The Angular CLI includes the test system within a new project but must be configured before it can be used.

0 commit comments

Comments
 (0)