From 6c2da1bcde48c6ec9f4e8dd1baa77e8347b534e1 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 6 Oct 2023 16:28:25 +0200 Subject: [PATCH] fix(crud): fix config for tesing lib inside the crud app --- apps/crud/src/test-setup.ts | 1 + apps/crud/tsconfig.spec.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/crud/src/test-setup.ts b/apps/crud/src/test-setup.ts index 1100b3e..15de72a 100644 --- a/apps/crud/src/test-setup.ts +++ b/apps/crud/src/test-setup.ts @@ -1 +1,2 @@ +import '@testing-library/jest-dom'; import 'jest-preset-angular/setup-jest'; diff --git a/apps/crud/tsconfig.spec.json b/apps/crud/tsconfig.spec.json index c5db027..1c5a3aa 100644 --- a/apps/crud/tsconfig.spec.json +++ b/apps/crud/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node", "@testing-library/jest-dom"] }, "files": ["src/test-setup.ts"], "include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]