From c8b26771c217c82fdbc77c4f7b174ad4b348409e Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Wed, 25 May 2022 19:01:29 +0300 Subject: [PATCH] RED-3800: update nx --- jest.config.js => jest.config.ts | 3 ++- tsconfig.lib.json | 2 +- tsconfig.spec.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename jest.config.js => jest.config.ts (94%) diff --git a/jest.config.js b/jest.config.ts similarity index 94% rename from jest.config.js rename to jest.config.ts index e4caf70..df9f67f 100644 --- a/jest.config.js +++ b/jest.config.ts @@ -1,4 +1,5 @@ -module.exports = { +/* eslint-disable */ +export default { displayName: 'common-ui', preset: '../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], diff --git a/tsconfig.lib.json b/tsconfig.lib.json index cd481ad..1b6f677 100644 --- a/tsconfig.lib.json +++ b/tsconfig.lib.json @@ -11,6 +11,6 @@ "lib": ["dom", "es2018"], "allowSyntheticDefaultImports": true }, - "exclude": ["src/test-setup.ts", "**/*.spec.ts"], + "exclude": ["src/test-setup.ts", "**/*.spec.ts", "jest.config.ts"], "include": ["**/*.ts"] } diff --git a/tsconfig.spec.json b/tsconfig.spec.json index cfff29a..7cc1d7b 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -6,5 +6,5 @@ "types": ["jest", "node"] }, "files": ["src/test-setup.ts"], - "include": ["**/*.spec.ts", "**/*.d.ts"] + "include": ["**/*.spec.ts", "**/*.d.ts", "jest.config.ts"] }