Skip to content

chore: move repo to angular-extensions #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ job_defaults: &job_defaults
- image: circleci/node:latest
working_directory: ~/project/repo

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

jobs:
install:
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ngx-testing-library
# testing-library

> Lightweight utility functions to test Angular components.

Expand All @@ -25,9 +25,9 @@

## Installation

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

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

## Why

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

## What

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

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

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

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

Based on a component type:

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

createComponent(
{
Expand Down Expand Up @@ -117,9 +117,9 @@ Calls the the Angular `TestBed.get` function.

## Usage

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

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

Before:

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('AppComponent', () => {
After:

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

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

MIT

[build-badge]: https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master.svg?style=shield
[build]: https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master
[build-badge]: https://circleci.com/gh/angular-extensions/testing-library/tree/master.svg?style=shield
[build]: https://circleci.com/gh/angular-extensions/testing-library/tree/master
[sr-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[sr]: https://github.com/semantic-release/semantic-release
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg
[prettier]: https://github.com/prettier/prettier
[npm-badge]: https://img.shields.io/npm/v/ngx-testing-library.svg
[npm]: https://www.npmjs.com/package/ngx-testing-library
[license-badge]: https://img.shields.io/npm/l/ngx-testing-library.svg?style=flat-square
[license]: https://github.com/timdeschryver/ngx-testing-library/blob/master/LICENSE
[npm-badge]: https://img.shields.io/npm/v/testing-library.svg
[npm]: https://www.npmjs.com/package/testing-library
[license-badge]: https://img.shields.io/npm/l/testing-library.svg?style=flat-square
[license]: https://github.com/angular-extensions/testing-library/blob/master/LICENSE
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/timdeschryver/ngx-testing-library/blob/master/CODE_OF_CONDUCT.md
[coc]: https://github.com/angular-extensions/testing-library/blob/master/CODE_OF_CONDUCT.md
[dom-testing-library]: https://github.com/kentcdodds/dom-testing-library
26 changes: 13 additions & 13 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngx-testing-library-app": {
"testing-library-app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
Expand All @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/ngx-testing-library-app",
"outputPath": "dist/testing-library-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -45,18 +45,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngx-testing-library-app:build"
"browserTarget": "testing-library-app:build"
},
"configurations": {
"production": {
"browserTarget": "ngx-testing-library-app:build:production"
"browserTarget": "testing-library-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-testing-library-app:build"
"browserTarget": "testing-library-app:build"
}
},
"lint": {
Expand All @@ -68,33 +68,33 @@
}
}
},
"ngx-testing-library": {
"root": "projects/ngx-testing-library",
"sourceRoot": "projects/ngx-testing-library/src",
"testing-library": {
"root": "projects/testing-library",
"sourceRoot": "projects/testing-library/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ngx-testing-library/tsconfig.lib.json",
"project": "projects/ngx-testing-library/ng-package.json"
"tsConfig": "projects/testing-library/tsconfig.lib.json",
"project": "projects/testing-library/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/ngx-testing-library/ng-package.prod.json"
"project": "projects/testing-library/ng-package.prod.json"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["projects/ngx-testing-library/tsconfig.lib.json", "./tsconfig.spec.json"],
"tsConfig": ["projects/testing-library/tsconfig.lib.json", "./tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "ngx-testing-library-app"
"defaultProject": "testing-library-app"
}
Loading