test: add electron test (#1840)

This commit is contained in:
Himself65
2023-04-24 18:53:36 -05:00
committed by GitHub
parent 9c94d05dd8
commit d3ce90e721
18 changed files with 212 additions and 33 deletions

View File

@@ -16,7 +16,8 @@
"make-windows-x64": "electron-forge make --platform=win32 --arch=x64",
"make-linux-x64": "electron-forge make --platform=linux --arch=x64",
"rebuild:for-test": "yarn rebuild better-sqlite3",
"rebuild:for-electron": "yarn electron-rebuild"
"rebuild:for-electron": "yarn electron-rebuild",
"test": "playwright test"
},
"config": {
"forge": "./forge.config.js"
@@ -42,6 +43,8 @@
"electron-window-state": "^5.0.3",
"esbuild": "^0.17.18",
"fs-extra": "^11.1.1",
"playwright": "^1.32.3",
"ts-node": "^10.9.1",
"undici": "^5.22.0",
"zx": "^7.2.1"
},
@@ -62,5 +65,9 @@
"stableVersion": "0.5.3",
"installConfig": {
"hoistingLimits": "workspaces"
},
"peerDependencies": {
"playwright": "*",
"ts-node": "*"
}
}