summaryrefslogtreecommitdiff
path: root/test/index.spec.ts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-08-20 01:46:41 +0300
committerValentin Popov <info@valentineus.link>2019-08-20 01:46:41 +0300
commit22989465538f64e86fe5ac0235e322133b95056c (patch)
tree7c4f1f92310562e8087e3314dc2beac4661b3be1 /test/index.spec.ts
parenta6b4bc15ebcfc3aa358fcfc95967da56381f0603 (diff)
downloadelectron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.tar.xz
electron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.zip
Initial test application
Signed-off-by: Valentin Popov <info@valentineus.link>
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();
+ });
+});