Skip to content

Commit a322cf4

Browse files
committed
chore: move repo to angular-extensions (#3)
BREAKING CHANGE: Library will be deployed to @angular-extensions/testing-library
1 parent ad912ef commit a322cf4

22 files changed

+5481
-3634
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ job_defaults: &job_defaults
55
- image: circleci/node:latest
66
working_directory: ~/project/repo
77

8-
cache_key: &cache_key ngx-testing-library-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
9-
dist_key: &dist_key ngx-testing-library-dist-{{ .Revision }}
8+
cache_key: &cache_key testing-library-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
9+
dist_key: &dist_key testing-library-dist-{{ .Revision }}
1010

1111
jobs:
1212
install:

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ngx-testing-library
1+
# testing-library
22

33
> Lightweight utility functions to test Angular components.
44
@@ -25,9 +25,9 @@
2525

2626
## Installation
2727

28-
Install `ngx-testing-library` from [npm] and add it your `devDependencies`:
28+
Install `@angular-extensions/testing-library` from [npm] and add it your `devDependencies`:
2929

30-
`npm install ngx-testing-library --save-dev`
30+
`npm install @angular-extensions/testing-library --save-dev`
3131

3232
## Why
3333

@@ -36,7 +36,7 @@ Install `ngx-testing-library` from [npm] and add it your `devDependencies`:
3636

3737
## What
3838

39-
ngx-testing-library is an Angular adapter around [dom-testing-library][dom-testing-library],
39+
`@angular-extensions/testing-library` is an Angular adapter around [dom-testing-library][dom-testing-library],
4040
which provides lightweight utility functions to test UI components. Your tests will work with actual DOM nodes.
4141

4242
## How
@@ -50,15 +50,15 @@ This method can be used in two ways:
5050
Based on a template:
5151

5252
```ts
53-
import { createComponent } from 'ngx-testing-library';
53+
import { createComponent } from '@angular-extensions/testing-library';
5454

5555
createComponent('<my-component [prop]="1"></my-component>', options);
5656
```
5757

5858
Based on a component type:
5959

6060
```ts
61-
import { createComponent } from 'ngx-testing-library';
61+
import { createComponent } from '@angular-extensions/testing-library';
6262

6363
createComponent(
6464
{
@@ -117,9 +117,9 @@ Calls the the Angular `TestBed.get` function.
117117

118118
## Usage
119119

120-
You can find some examples in the [tests folder](https://github.com/timdeschryver/ngx-testing-library/tree/master/projects/ngx-testing-library/tests).
120+
You can find some examples in the [tests folder](https://github.com/angular-extensions/testing-library/tree/master/projects/testing-library/tests).
121121

122-
Here is how the "default" specifications can be written with `ngx-testing-library`.
122+
Here is how the "default" specifications can be written with `@angular-extensions/testing-library`.
123123

124124
Before:
125125

@@ -152,7 +152,7 @@ describe('AppComponent', () => {
152152
After:
153153

154154
```ts
155-
import { createComponent } from 'ngx-testing-library';
155+
import { createComponent } from '@angular-extensions/testing-library';
156156
import { AppComponent } from './app.component';
157157

158158
it(`should have as title 'my-awesome-app'`, async () => {
@@ -179,16 +179,16 @@ it(`should render title in a h1 tag`, async () => {
179179

180180
MIT
181181

182-
[build-badge]: https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master.svg?style=shield
183-
[build]: https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master
182+
[build-badge]: https://circleci.com/gh/angular-extensions/testing-library/tree/master.svg?style=shield
183+
[build]: https://circleci.com/gh/angular-extensions/testing-library/tree/master
184184
[sr-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
185185
[sr]: https://github.com/semantic-release/semantic-release
186186
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg
187187
[prettier]: https://github.com/prettier/prettier
188-
[npm-badge]: https://img.shields.io/npm/v/ngx-testing-library.svg
189-
[npm]: https://www.npmjs.com/package/ngx-testing-library
190-
[license-badge]: https://img.shields.io/npm/l/ngx-testing-library.svg?style=flat-square
191-
[license]: https://github.com/timdeschryver/ngx-testing-library/blob/master/LICENSE
188+
[npm-badge]: https://img.shields.io/npm/v/testing-library.svg
189+
[npm]: https://www.npmjs.com/package/testing-library
190+
[license-badge]: https://img.shields.io/npm/l/testing-library.svg?style=flat-square
191+
[license]: https://github.com/angular-extensions/testing-library/blob/master/LICENSE
192192
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
193-
[coc]: https://github.com/timdeschryver/ngx-testing-library/blob/master/CODE_OF_CONDUCT.md
193+
[coc]: https://github.com/angular-extensions/testing-library/blob/master/CODE_OF_CONDUCT.md
194194
[dom-testing-library]: https://github.com/kentcdodds/dom-testing-library

angular.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ngx-testing-library-app": {
6+
"testing-library-app": {
77
"root": "",
88
"sourceRoot": "src",
99
"projectType": "application",
@@ -13,7 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16-
"outputPath": "dist/ngx-testing-library-app",
16+
"outputPath": "dist/testing-library-app",
1717
"index": "src/index.html",
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
@@ -45,18 +45,18 @@
4545
"serve": {
4646
"builder": "@angular-devkit/build-angular:dev-server",
4747
"options": {
48-
"browserTarget": "ngx-testing-library-app:build"
48+
"browserTarget": "testing-library-app:build"
4949
},
5050
"configurations": {
5151
"production": {
52-
"browserTarget": "ngx-testing-library-app:build:production"
52+
"browserTarget": "testing-library-app:build:production"
5353
}
5454
}
5555
},
5656
"extract-i18n": {
5757
"builder": "@angular-devkit/build-angular:extract-i18n",
5858
"options": {
59-
"browserTarget": "ngx-testing-library-app:build"
59+
"browserTarget": "testing-library-app:build"
6060
}
6161
},
6262
"lint": {
@@ -68,33 +68,33 @@
6868
}
6969
}
7070
},
71-
"ngx-testing-library": {
72-
"root": "projects/ngx-testing-library",
73-
"sourceRoot": "projects/ngx-testing-library/src",
71+
"testing-library": {
72+
"root": "projects/testing-library",
73+
"sourceRoot": "projects/testing-library/src",
7474
"projectType": "library",
7575
"prefix": "lib",
7676
"architect": {
7777
"build": {
7878
"builder": "@angular-devkit/build-ng-packagr:build",
7979
"options": {
80-
"tsConfig": "projects/ngx-testing-library/tsconfig.lib.json",
81-
"project": "projects/ngx-testing-library/ng-package.json"
80+
"tsConfig": "projects/testing-library/tsconfig.lib.json",
81+
"project": "projects/testing-library/ng-package.json"
8282
},
8383
"configurations": {
8484
"production": {
85-
"project": "projects/ngx-testing-library/ng-package.prod.json"
85+
"project": "projects/testing-library/ng-package.prod.json"
8686
}
8787
}
8888
},
8989
"lint": {
9090
"builder": "@angular-devkit/build-angular:tslint",
9191
"options": {
92-
"tsConfig": ["projects/ngx-testing-library/tsconfig.lib.json", "./tsconfig.spec.json"],
92+
"tsConfig": ["projects/testing-library/tsconfig.lib.json", "./tsconfig.spec.json"],
9393
"exclude": ["**/node_modules/**"]
9494
}
9595
}
9696
}
9797
}
9898
},
99-
"defaultProject": "ngx-testing-library-app"
99+
"defaultProject": "testing-library-app"
100100
}

0 commit comments

Comments
 (0)