From d6497261342fa05a06c5b78e1f82df1bef29eda1 Mon Sep 17 00:00:00 2001 From: Kevin Scott <151596+thekevinscott@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:00:48 -0400 Subject: [PATCH] Bring back jest files --- packages/upscalerjs/jestconfig.browser.json | 16 ++++++++++++++++ packages/upscalerjs/jestconfig.node.json | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 packages/upscalerjs/jestconfig.browser.json create mode 100644 packages/upscalerjs/jestconfig.node.json diff --git a/packages/upscalerjs/jestconfig.browser.json b/packages/upscalerjs/jestconfig.browser.json new file mode 100644 index 000000000..589298e02 --- /dev/null +++ b/packages/upscalerjs/jestconfig.browser.json @@ -0,0 +1,16 @@ +{ + "transform": { + "^.+\\.(t|j)sx?$": "ts-jest" + }, + "testEnvironment": "node", + "setupFiles": ["jest-canvas-mock"], + "collectCoverage": true, + "coveragePathIgnorePatterns": [ + "node_modules", + ".generated.ts", + ".node.ts" + ], + "modulePathIgnorePatterns": ["image.browser.test.ts", "node.test.ts"], + "testRegex": "test\\.ts$", + "moduleFileExtensions": ["js", "ts"] +} diff --git a/packages/upscalerjs/jestconfig.node.json b/packages/upscalerjs/jestconfig.node.json new file mode 100644 index 000000000..69f5f0e17 --- /dev/null +++ b/packages/upscalerjs/jestconfig.node.json @@ -0,0 +1,15 @@ +{ + "transform": { + "^.+\\.(t|j)sx?$": "ts-jest" + }, + "testEnvironment": "node", + "collectCoverage": true, + "coveragePathIgnorePatterns": [ + "node_modules", + ".generated.ts", + ".browser.ts" + ], + "modulePathIgnorePatterns": ["browser.test.ts"], + "testRegex": "test\\.ts$", + "moduleFileExtensions": ["js", "ts"] +}