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