mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
More cleanups
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
0a4256aa48
commit
bc1c143ccd
@ -14,7 +14,6 @@ case "darwin":
|
||||
}
|
||||
|
||||
export function setup(): Application {
|
||||
const userData = process.cwd() + "/.spectron"
|
||||
return new Application({
|
||||
// path to electron app
|
||||
args: [],
|
||||
@ -29,9 +28,10 @@ export function setup(): Application {
|
||||
}
|
||||
|
||||
export async function tearDown(app: Application) {
|
||||
const pid = app.mainProcess.pid
|
||||
await app.stop()
|
||||
try {
|
||||
process.kill(app.mainProcess.pid, 0);
|
||||
process.kill(pid, 0);
|
||||
} catch(e) {
|
||||
return
|
||||
}
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
import { Application } from "spectron"
|
||||
import * as util from "../helpers/utils"
|
||||
import { spawnSync } from "child_process"
|
||||
import { stat } from "fs"
|
||||
import logger from "../../src/main/logger"
|
||||
import AppCanvas from "material-ui/internal/AppCanvas"
|
||||
|
||||
jest.setTimeout(20000)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user