From 08da23225aed0a8b8a472d7a5f63b65d8f2b660a Mon Sep 17 00:00:00 2001 From: Lucas Dower Date: Sun, 11 Sep 2022 19:42:51 +0100 Subject: [PATCH] Separated end-to-end tests to a new action --- jestconfig.full.json | 7 +++++++ jestconfig.json | 3 ++- package.json | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 jestconfig.full.json diff --git a/jestconfig.full.json b/jestconfig.full.json new file mode 100644 index 0000000..a7a636d --- /dev/null +++ b/jestconfig.full.json @@ -0,0 +1,7 @@ +{ + "transform": { + "^.+\\.(t|j)sx?$": "ts-jest" + }, + "testRegex": "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"] + } \ No newline at end of file diff --git a/jestconfig.json b/jestconfig.json index a7a636d..508dc36 100644 --- a/jestconfig.json +++ b/jestconfig.json @@ -3,5 +3,6 @@ "^.+\\.(t|j)sx?$": "ts-jest" }, "testRegex": "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", - "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"] + "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"], + "modulePathIgnorePatterns": ["/tests/full/"] } \ No newline at end of file diff --git a/package.json b/package.json index cddda36..2cbc746 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "scripts": { "lint": "eslint --fix src tools --ext .ts", "build": "tsc", - "test": "jest --config jestconfig.json --runInBand", + "test": "jest --config jestconfig.json", + "test-full": "jest --config jestconfig.full.json --runInBand", "start": "npm run build && electron ./dist/src/main.js --enable-logging", "atlas": "node ./dist/tools/build-atlas.js", "palette": "node ./dist/tools/build-palette.js",