Skip to content

Commit

Permalink
test: unite jasmine and jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satanTime committed Jun 7, 2020
1 parent 6661d32 commit 3d4488b
Show file tree
Hide file tree
Showing 202 changed files with 217 additions and 4,488 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM satantime/puppeteer-node:10
FROM satantime/puppeteer-node:10-buster-slim

WORKDIR /app
ENTRYPOINT ["/docker-entrypoint.sh"]
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,25 @@ Or you could use this to mock them out and have the ability to assert on their i

For an easy start check the [MockBuilder](#mockbuilder) first.

- [jasmine examples](https://github.com/ike18t/ng-mocks/tree/master/examples-jasmine)
- [jest examples](https://github.com/ike18t/ng-mocks/tree/master/examples-jest)
- [examples from the doc](https://github.com/ike18t/ng-mocks/tree/master/examples)

* [jasmine e2e tests](https://github.com/ike18t/ng-mocks/tree/master/tests-jasmine)
* [jest e2e tests](https://github.com/ike18t/ng-mocks/tree/master/tests-jest)
* [current e2e tests](https://github.com/ike18t/ng-mocks/tree/master/tests)

### Sections:

- [MockModule](#mockmodule)
- [MockComponent](#mockcomponents)
- [MockDirective](#mockdirectives)
- [MockPipe](#mockpipes)
- [MockDeclaration](#mockdeclarations)
- [MockModule](#mockmodule)

* [MockBuilder](#mockbuilder) - facilitate creation of a mocked environment
* [MockRender](#mockrender) - facilitate render of components
* [MockHelper](#mockhelper) - facilitate extraction of directives of an element
* [ngMocks](#ngmocks) - facilitate extraction of directives of an element

- [Reactive Forms Components](#mocked-reactive-forms-components)
- [Structural Components](#usage-example-of-structural-directives)
- [Auto Spy](#auto-spy)
- [More examples](#other-examples-of-tests)

---

Expand Down Expand Up @@ -706,6 +703,9 @@ ngMocks provides functions to get attribute and structural directives from an el

- ngMocks.flushTestBed()

<details><summary>Click to see <strong>a usage example</strong></summary>
<p>

```typescript
// returns attribute or structural directive
// which belongs to current element.
Expand Down Expand Up @@ -796,6 +796,9 @@ describe('MockService', () => {
});
```

</p>
</details>

## Auto Spy

Add the next code to `src/test.ts` if you want all mocked methods and functions to be a jasmine spy.
Expand Down
159 changes: 0 additions & 159 deletions examples-jasmine/MockBuilder/fixtures.components.ts

This file was deleted.

18 changes: 0 additions & 18 deletions examples-jasmine/MockComponent/dependency.component.ts

This file was deleted.

18 changes: 0 additions & 18 deletions examples-jasmine/MockModule/dependency.component.ts

This file was deleted.

64 changes: 0 additions & 64 deletions examples-jasmine/MockRender/MockRender.spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions examples-jasmine/MockRender/dependency.component.ts

This file was deleted.

Loading

0 comments on commit 3d4488b

Please sign in to comment.