From a6a74ecc8d86af6166bee583336284d776c203d8 Mon Sep 17 00:00:00 2001
From: Tom-Rune Bornholdt
Date: Wed, 15 Jan 2025 11:40:05 +0100
Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20test=20setups?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apps/playground/src/test-setup.ts | 7 ++++++-
libs/cdk/src/test-setup.ts | 7 ++++++-
libs/components/src/test-setup.ts | 7 ++++++-
libs/contentful/src/test-setup.ts | 7 ++++++-
libs/core/src/test-setup.ts | 7 ++++++-
libs/query/src/test-setup.ts | 7 ++++++-
libs/theming/src/test-setup.ts | 7 ++++++-
libs/types/src/test-setup.ts | 7 ++++++-
8 files changed, 48 insertions(+), 8 deletions(-)
diff --git a/apps/playground/src/test-setup.ts b/apps/playground/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/apps/playground/src/test-setup.ts
+++ b/apps/playground/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/cdk/src/test-setup.ts b/libs/cdk/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/cdk/src/test-setup.ts
+++ b/libs/cdk/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/components/src/test-setup.ts b/libs/components/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/components/src/test-setup.ts
+++ b/libs/components/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/contentful/src/test-setup.ts b/libs/contentful/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/contentful/src/test-setup.ts
+++ b/libs/contentful/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/core/src/test-setup.ts b/libs/core/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/core/src/test-setup.ts
+++ b/libs/core/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/query/src/test-setup.ts b/libs/query/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/query/src/test-setup.ts
+++ b/libs/query/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/theming/src/test-setup.ts b/libs/theming/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/theming/src/test-setup.ts
+++ b/libs/theming/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});
diff --git a/libs/types/src/test-setup.ts b/libs/types/src/test-setup.ts
index 1100b3e8a..ea414013f 100644
--- a/libs/types/src/test-setup.ts
+++ b/libs/types/src/test-setup.ts
@@ -1 +1,6 @@
-import 'jest-preset-angular/setup-jest';
+import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
+
+setupZoneTestEnv({
+ errorOnUnknownElements: true,
+ errorOnUnknownProperties: true,
+});