feat(testing): Added eslint and git pre commit hook

This commit is contained in:
Muhammed Mustafa
2022-11-02 21:21:18 +05:30
parent 124de8475e
commit 24f98f26f4
11 changed files with 5695 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ const config: PlaywrightTestConfig = {
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 13000
timeout: 13000,
},
/* Run tests in files in parallel */
fullyParallel: true,
@@ -39,7 +39,7 @@ const config: PlaywrightTestConfig = {
baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: process.env.CI ? 'on-first-retry': process.env.TRACE ? 'on' : 'off',
trace: process.env.CI ? 'on-first-retry' : process.env.TRACE ? 'on' : 'off',
screenshot: 'only-on-failure',
},
/* Configure projects for major browsers */