Separated end-to-end tests to a new action

This commit is contained in:
Lucas Dower 2022-09-11 19:42:51 +01:00
parent edcb9ec4b0
commit 08da23225a
3 changed files with 11 additions and 2 deletions

7
jestconfig.full.json Normal file
View File

@ -0,0 +1,7 @@
{
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testRegex": "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
}

View File

@ -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/"]
}

View File

@ -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",