From 711b4d9b20bde189fc6164666c3f34fe52dc1698 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 27 Jun 2023 13:09:24 +0530 Subject: [PATCH] test(ui): increase timeout to 60s - add formatting check to lint.yml --- .github/workflows/lint.yml | 5 ++++- .prettierignore | 5 ++++- package.json | 3 ++- uitest/index.mjs | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32f0b7fd2..199bfb7a3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,4 +29,7 @@ jobs: run: yarn - name: Lint - run: yarn lint \ No newline at end of file + run: yarn lint + + - name: Check Formatting + run: yarn prettier --check . diff --git a/.prettierignore b/.prettierignore index d89325b67..373e79671 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,4 @@ -**/types.ts \ No newline at end of file +**/types.ts +**/dist_electron +**/dummy/*.json +**/fixtures/countryInfo.json \ No newline at end of file diff --git a/package.json b/package.json index 78d192bc7..4d13e7d5a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "script:profile": "scripts/profile.sh", "test": "scripts/test.sh", "uitest": "node uitest/index.mjs | tap-spec", - "lint": "eslint . --ext ts,vue" + "lint": "eslint . --ext ts,vue", + "format": "prettier --write ." }, "dependencies": { "@codemirror/autocomplete": "^6.4.2", diff --git a/uitest/index.mjs b/uitest/index.mjs index 227427409..0f2913615 100644 --- a/uitest/index.mjs +++ b/uitest/index.mjs @@ -10,7 +10,7 @@ const appSourcePath = path.join(root, 'dist_electron', 'build', 'main.js'); (async function run() { const electronApp = await _electron.launch({ args: [appSourcePath] }); const window = await electronApp.firstWindow(); - window.setDefaultTimeout(10_000); + window.setDefaultTimeout(60_000); test('load app', async (t) => { t.equal(await window.title(), 'Frappe Books', 'title matches');