Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate jest and spectron #28

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/__test__/examplesTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const Application = require("spectron").Application;
const electronPath = require("electron");
const path = require("path");

beforeAll(() => {
app = new Application({
path: electronPath,

args: [path.join(__dirname, "../../")]
});

return app.start();
}, 15000);

afterAll(function () {
if (app && app.isRunning()) {
return app.stop();
}
});

test("Displays App window", async function () {
let windowCount = await app.client.getWindowCount();

expect(windowCount).toBe(1);
});
Empty file removed app/console.css
Empty file.
26 changes: 0 additions & 26 deletions app/console.html

This file was deleted.

28 changes: 0 additions & 28 deletions app/console.js

This file was deleted.

28 changes: 0 additions & 28 deletions app/consolePreload.js

This file was deleted.

Empty file removed app/dashboard.css
Empty file.
186 changes: 0 additions & 186 deletions app/index.html

This file was deleted.

43 changes: 0 additions & 43 deletions app/preload.js

This file was deleted.

Loading