diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-05-03 19:47:39 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:55:02 +0200 |
commit | d2aa484b600dc0d122bb994b9bb29504ffe4cf12 (patch) | |
tree | 1d3e38fdb22f7afe02f1ebcf4b07734761970985 /package.json | |
parent | refactor: config file saving and debugging (diff) | |
download | sophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.tar.gz sophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.tar.zst sophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.zip |
build: integration testing support
Run integration tests in an electron environment for the main process.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/package.json b/package.json index 2daa6c3..2e60130 100644 --- a/package.json +++ b/package.json | |||
@@ -20,8 +20,12 @@ | |||
20 | "main": "packages/main/dist/index.cjs", | 20 | "main": "packages/main/dist/index.cjs", |
21 | "scripts": { | 21 | "scripts": { |
22 | "clean": "rimraf coverage dist packages/*/dist packages/*/*.tsbuildinfo .vite", | 22 | "clean": "rimraf coverage dist packages/*/dist packages/*/*.tsbuildinfo .vite", |
23 | "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", | 23 | "test": "node --experimental-vm-modules --no-warnings $(yarn bin jest)", |
24 | "test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit", | 24 | "test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit", |
25 | "test:integ": "electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --config=jest.integ.config.cjs --runInBand", | ||
26 | "test:integ:xvfb": "cross-env DISABLE_GPU=true xvfb-run -s \"-screen 0 1920x1080x24\" electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --config=jest.integ.config.cjs --runInBand", | ||
27 | "test:integ:ci": "cross-env DISABLE_GPU=true yarn test:integ --ci --coverage --reporters=default --reporters=jest-junit", | ||
28 | "test:integ:xvfb:ci": "yarn test:integ:xvfb --ci --coverage --reporters=default --reporters=jest-junit", | ||
25 | "build": "node scripts/build.js", | 29 | "build": "node scripts/build.js", |
26 | "precompile": "cross-env MODE=production yarn run build", | 30 | "precompile": "cross-env MODE=production yarn run build", |
27 | "compile": "yarn precompile && yarn compile:electron-builder", | 31 | "compile": "yarn precompile && yarn compile:electron-builder", |
@@ -57,15 +61,15 @@ | |||
57 | "devDependencies": { | 61 | "devDependencies": { |
58 | "@electron/fuses": "^1.5.0", | 62 | "@electron/fuses": "^1.5.0", |
59 | "@types/is-ci": "^3.0.0", | 63 | "@types/is-ci": "^3.0.0", |
60 | "@types/jest": "^27.4.1", | 64 | "@types/jest": "^27.5.0", |
61 | "@types/prettier": "^2.6.0", | 65 | "@types/prettier": "^2.6.0", |
62 | "@typescript-eslint/eslint-plugin": "^5.20.0", | 66 | "@typescript-eslint/eslint-plugin": "^5.22.0", |
63 | "@typescript-eslint/parser": "^5.20.0", | 67 | "@typescript-eslint/parser": "^5.22.0", |
64 | "@vitejs/plugin-react": "^1.3.1", | 68 | "@vitejs/plugin-react": "^1.3.2", |
65 | "chokidar": "^3.5.3", | 69 | "chokidar": "^3.5.3", |
66 | "cross-env": "^7.0.3", | 70 | "cross-env": "^7.0.3", |
67 | "electron": "^19.0.0-alpha.1", | 71 | "electron": "^19.0.0-beta.3", |
68 | "electron-builder": "^23.0.7", | 72 | "electron-builder": "^23.0.8", |
69 | "esbuild": "^0.14.38", | 73 | "esbuild": "^0.14.38", |
70 | "eslint": "^8.14.0", | 74 | "eslint": "^8.14.0", |
71 | "eslint-config-airbnb": "^19.0.4", | 75 | "eslint-config-airbnb": "^19.0.4", |
@@ -80,19 +84,21 @@ | |||
80 | "eslint-plugin-prettier": "^4.0.0", | 84 | "eslint-plugin-prettier": "^4.0.0", |
81 | "eslint-plugin-promise": "^6.0.0", | 85 | "eslint-plugin-promise": "^6.0.0", |
82 | "eslint-plugin-react": "^7.29.4", | 86 | "eslint-plugin-react": "^7.29.4", |
83 | "eslint-plugin-react-hooks": "^4.4.0", | 87 | "eslint-plugin-react-hooks": "^4.5.0", |
84 | "eslint-plugin-security": "^1.5.0", | 88 | "eslint-plugin-security": "^1.5.0", |
85 | "eslint-plugin-unicorn": "^42.0.0", | 89 | "eslint-plugin-unicorn": "^42.0.0", |
86 | "git-repo-info": "^2.1.1", | 90 | "git-repo-info": "^2.1.1", |
87 | "is-ci": "^3.0.1", | 91 | "is-ci": "^3.0.1", |
88 | "jest": "^27.5.1", | 92 | "jest": "^28.0.3", |
93 | "jest-cli": "^28.0.3", | ||
94 | "jest-environment-node": "^28.0.2", | ||
89 | "jest-junit": "^13.2.0", | 95 | "jest-junit": "^13.2.0", |
90 | "nano-staged": "^0.7.0", | 96 | "nano-staged": "^0.8.0", |
91 | "prettier": "^2.6.2", | 97 | "prettier": "^2.6.2", |
92 | "rimraf": "^3.0.2", | 98 | "rimraf": "^3.0.2", |
93 | "simple-git-hooks": "^2.7.0", | 99 | "simple-git-hooks": "^2.7.0", |
94 | "typescript": "^4.6.3", | 100 | "typescript": "^4.6.4", |
95 | "vite": "^2.9.5" | 101 | "vite": "^2.9.7" |
96 | }, | 102 | }, |
97 | "packageManager": "yarn@3.2.0" | 103 | "packageManager": "yarn@3.2.0" |
98 | } | 104 | } |