-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconfigure linting on the entire project (#123)
- Loading branch information
1 parent
bf37ec6
commit 2998b3f
Showing
206 changed files
with
5,713 additions
and
5,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": ["eslint --fix --max-warnings=3", "git add ."] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
import { | ||
ElectronApplication, | ||
_electron as electron, | ||
expect, | ||
test, | ||
} from "@playwright/test" | ||
import { ElectronApplication, _electron as electron, expect, test } from "@playwright/test"; | ||
|
||
import { findLatestBuild, parseElectronApp } from "electron-playwright-helpers" | ||
import { findLatestBuild, parseElectronApp } from "electron-playwright-helpers"; | ||
|
||
let electronApp: ElectronApplication | ||
let electronApp: ElectronApplication; | ||
|
||
test.beforeAll(async () => { | ||
const latestBuild = findLatestBuild() | ||
const appInfo = parseElectronApp(latestBuild) | ||
const latestBuild = findLatestBuild(); | ||
const appInfo = parseElectronApp(latestBuild); | ||
electronApp = await electron.launch({ | ||
args: [appInfo.main], | ||
executablePath: appInfo.executable, | ||
}) | ||
}) | ||
}); | ||
}); | ||
|
||
test.afterAll(async () => { | ||
await electronApp.close() | ||
}) | ||
await electronApp.close(); | ||
}); | ||
|
||
test("homepage has title and links to intro page", async () => { | ||
const page = await electronApp.firstWindow() | ||
await page.screenshot({ path: "e2e/screenshots/example.png" }) | ||
expect(await page.title()).toBe("Project Canvas") | ||
}) | ||
const page = await electronApp.firstWindow(); | ||
await page.screenshot({ path: "e2e/screenshots/example.png" }); | ||
expect(await page.title()).toBe("Project Canvas"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.