From 3f56834716f0249de46d65b629d2c6ee1e19ee60 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 12 Apr 2022 16:55:59 +0200 Subject: [PATCH] Update jest configs to remove roots (#766) --- angular/jest.config.js | 1 - common/jest.config.js | 1 - electron/jest.config.js | 1 - node/jest.config.js | 1 - 4 files changed, 4 deletions(-) diff --git a/angular/jest.config.js b/angular/jest.config.js index 811fe88c48b..19d250fc9ec 100644 --- a/angular/jest.config.js +++ b/angular/jest.config.js @@ -6,7 +6,6 @@ module.exports = { name: "angular", displayName: "angular tests", preset: "jest-preset-angular", - roots: ["/spec/"], testMatch: ["**/+(*.)+(spec).+(ts)"], setupFilesAfterEnv: ["/spec/test.ts"], collectCoverage: true, diff --git a/common/jest.config.js b/common/jest.config.js index 44ab007edd7..76856611f47 100644 --- a/common/jest.config.js +++ b/common/jest.config.js @@ -7,7 +7,6 @@ module.exports = { displayName: "common jslib tests", preset: "ts-jest", testEnvironment: "jsdom", - roots: ["/spec/"], testMatch: ["**/+(*.)+(spec).+(ts)"], setupFilesAfterEnv: ["/spec/test.ts"], collectCoverage: true, diff --git a/electron/jest.config.js b/electron/jest.config.js index baf36c19e5b..8d59aeafe61 100644 --- a/electron/jest.config.js +++ b/electron/jest.config.js @@ -5,7 +5,6 @@ const { compilerOptions } = require("./tsconfig"); module.exports = { preset: "ts-jest", testEnvironment: "jsdom", - roots: ["/spec/"], testMatch: ["**/+(*.)+(spec).+(ts)"], setupFilesAfterEnv: ["/spec/test.ts"], collectCoverage: true, diff --git a/node/jest.config.js b/node/jest.config.js index 89cf4d70358..f1bfb7a9b29 100644 --- a/node/jest.config.js +++ b/node/jest.config.js @@ -4,7 +4,6 @@ const { compilerOptions } = require("./tsconfig"); module.exports = { preset: "ts-jest", - roots: ["/spec/"], testMatch: ["**/+(*.)+(spec).+(ts)"], setupFilesAfterEnv: ["/spec/test.ts"], collectCoverage: true,