From 1fe4bb2aa2891e4a309ae703f2efe29422ac4df1 Mon Sep 17 00:00:00 2001 From: Gerome Grignon Date: Tue, 7 Jul 2026 22:14:56 +0200 Subject: [PATCH] feat: add angular compatibility matrix --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 376c78d..bc14236 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ This fork, published as [`@openng/spectator`](https://www.npmjs.com/package/@ope - [Installation](#installation) - [NPM](#npm) - [Yarn](#yarn) +- [Compatibility Matrix](#compatibility-matrix) - [Testing Components](#testing-components) - [Events API](#events-api) - [Custom Events](#custom-events) @@ -96,6 +97,22 @@ This fork, published as [`@openng/spectator`](https://www.npmjs.com/package/@ope `yarn add @openng/spectator --dev` +## Compatibility Matrix + +| Package | Version | Angular | +| :------------------ | :------ | :-------------- | +| `@openng/spectator` | 1.0.0 | 22.x.x | +| `@ngneat/spectator` | 22.0.0 | 20.x.x - 22.x.x | +| `@ngneat/spectator` | 20.0.0 | 18.x.x - 19.x.x | +| `@ngneat/spectator` | 18.0.0 | 17.x.x | +| `@ngneat/spectator` | 15.0.1 | 16.x.x | +| `@ngneat/spectator` | 14.0.0 | 15.x.x | +| `@ngneat/spectator` | 12.0.0 | 14.x.x | +| `@ngneat/spectator` | 10.0.0 | 13.x.x | +| `@ngneat/spectator` | 8.0.0 | 12.x.x | +| `@ngneat/spectator` | 7.2.0 | 10.x.x - 11.x.x | +| `@ngneat/spectator` | 7.0.0 | 8.x.x - 9.x.x | + ## Testing Components Create a component factory by using the `createComponentFactory()` function, passing the component class that you want to test. The `createComponentFactory()` returns a function that will create a fresh component in each `it` block: