summaryrefslogtreecommitdiff
path: root/test/index.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/index.spec.ts')
-rw-r--r--test/index.spec.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/index.spec.ts b/test/index.spec.ts
new file mode 100644
index 0000000..c2d5208
--- /dev/null
+++ b/test/index.spec.ts
@@ -0,0 +1,18 @@
+import path from "path";
+// tslint:disable-next-line: no-implicit-dependencies
+import { Application } from "spectron";
+
+const applicationPath: string = path.join(__dirname, "application");
+const electronPath: string = path.join(__dirname, "application", "node_modules", ".bin", "electron");
+
+describe("RendererReloader", () => {
+ it("start() / stop()", async () => {
+ const app: Application = new Application({
+ args: [applicationPath],
+ path: electronPath,
+ });
+
+ await app.start();
+ await app.stop();
+ });
+});