From 75b73dfcc404fb2b164e1b49046883487c1432ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20Sundf=C3=B8r?= Date: Tue, 19 Jan 2021 15:22:36 +0100 Subject: [PATCH] modules share jest.config.ts --- packages/converter/jest.config.js => jest.config.ts | 0 package.json | 1 + packages/api/jest.config.js | 4 ---- packages/api/jest.config.ts | 5 +++++ packages/authentication/jest.config.js | 4 ---- packages/authentication/jest.config.ts | 5 +++++ packages/common/jest.config.js | 7 ------- packages/common/jest.config.ts | 11 +++++++++++ packages/converter/jest.config.ts | 5 +++++ 9 files changed, 27 insertions(+), 15 deletions(-) rename packages/converter/jest.config.js => jest.config.ts (100%) delete mode 100644 packages/api/jest.config.js create mode 100644 packages/api/jest.config.ts delete mode 100644 packages/authentication/jest.config.js create mode 100644 packages/authentication/jest.config.ts delete mode 100644 packages/common/jest.config.js create mode 100644 packages/common/jest.config.ts create mode 100644 packages/converter/jest.config.ts diff --git a/packages/converter/jest.config.js b/jest.config.ts similarity index 100% rename from packages/converter/jest.config.js rename to jest.config.ts diff --git a/package.json b/package.json index 7970f4d6..331bae6d 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ ], "scripts": { "build": "yarn workspaces run build", + "test": "yarn workspaces run test", "api": "yarn workspace @paperpod/api", "web": "yarn workspace @paperpod/web", "authentication": "yarn workspace @paperpod/authentication", diff --git a/packages/api/jest.config.js b/packages/api/jest.config.js deleted file mode 100644 index b07ae7b0..00000000 --- a/packages/api/jest.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', -}; \ No newline at end of file diff --git a/packages/api/jest.config.ts b/packages/api/jest.config.ts new file mode 100644 index 00000000..e5faaac2 --- /dev/null +++ b/packages/api/jest.config.ts @@ -0,0 +1,5 @@ +const config = require("../../jest.config"); + +module.exports = { + ...config +}; \ No newline at end of file diff --git a/packages/authentication/jest.config.js b/packages/authentication/jest.config.js deleted file mode 100644 index 91a2d2c0..00000000 --- a/packages/authentication/jest.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', -}; \ No newline at end of file diff --git a/packages/authentication/jest.config.ts b/packages/authentication/jest.config.ts new file mode 100644 index 00000000..3bdffb8c --- /dev/null +++ b/packages/authentication/jest.config.ts @@ -0,0 +1,5 @@ +const config = require("../../jest.config"); + +module.exports = { + ...config +}; \ No newline at end of file diff --git a/packages/common/jest.config.js b/packages/common/jest.config.js deleted file mode 100644 index 50aaba65..00000000 --- a/packages/common/jest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', - testPathIgnorePatterns: [ - "src/test/test.ts" - ] -}; \ No newline at end of file diff --git a/packages/common/jest.config.ts b/packages/common/jest.config.ts new file mode 100644 index 00000000..99d2cf3c --- /dev/null +++ b/packages/common/jest.config.ts @@ -0,0 +1,11 @@ +const config = require("../../jest.config"); + +module.exports = { + ...config, + testPathIgnorePatterns: [ + ...config.testPathIgnorePatterns, + "src/test/test.ts" + ] +}; + + diff --git a/packages/converter/jest.config.ts b/packages/converter/jest.config.ts new file mode 100644 index 00000000..e5faaac2 --- /dev/null +++ b/packages/converter/jest.config.ts @@ -0,0 +1,5 @@ +const config = require("../../jest.config"); + +module.exports = { + ...config +}; \ No newline at end of file