Skip to content

Commit 00d57b6

Browse files
timdeschryverKent C. Dodds
authored and
Kent C. Dodds
committed
* docs: point to @testing-library/angular * docs: point to @testing-library/dom
1 parent b53c903 commit 00d57b6

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

docs/angular-testing-library/intro.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ id: intro
33
title: Angular Testing Library
44
---
55

6-
🦔 [`@angular-extensions/testing-library`][gh] Simple and complete
6+
🦔 [`@testing-library/angular`][gh] Simple and complete
77
[Angular](https://angular.io) testing utilities that encourage good testing
88
practices.
99

1010
```bash
11-
npm install --save-dev angular-extensions/testing-library
11+
npm install --save-dev @testing-library/angular
1212
```
1313

14-
- [`@angular-extensions/testing-library` on GitHub][gh]
14+
- [`@testing-library/angular-testing-library` on GitHub][gh]
1515

1616
## Usage
1717

@@ -42,7 +42,7 @@ export class CounterComponent {
4242
counter.component.spec.ts
4343

4444
```typescript
45-
import { render } from '@angular-extensions/testing-library'
45+
import { render } from '@testing-library/angular'
4646
import CounterComponent from './counter.component.ts'
4747

4848
describe('Counter', () => {
@@ -68,19 +68,20 @@ describe('Counter', () => {
6868

6969
## API
7070

71-
There is a small difference between `@angular-extensions/testing-library` and
72-
the `testing-library` family, in this library we also expose all of the events
73-
via the `render` function. This is done to trigger Angular's change detection
74-
after each interaction.
71+
There is a small difference between `@testing-library/angular` and the
72+
`testing-library` family, in this library we also expose all of the events via
73+
the `render` function. This is done to trigger Angular's change detection after
74+
each interaction.
7575

76-
You can also import these event via `@angular-extensions/testing-library`, but
77-
the Angular's change detection will not be triggered automatically.
76+
You can also import these event via `@testing-library/angular`, but the
77+
Angular's change detection will not be triggered automatically.
7878

79-
The same counts for all the queries provided by `DOM Testing Library`, these are
80-
also re-exported and can be imported via `@angular-extensions/testing-library`.
79+
The same counts for all the queries provided by the DOM Testing Library
80+
(`@testing-library/dom`), these are also re-exported and can be imported via
81+
`@testing-library/angular`.
8182

8283
```typescript
83-
import { getByText, click } from '@angular-extensions/testing-library'
84+
import { getByText, click } from '@testing-library/angular'
8485
```
8586

8687
[gh]: https://github.com/testing-library/angular-testing-library

0 commit comments

Comments
 (0)