Skip to content

Commit

Permalink
chore: use single-file eslint ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Mar 27, 2024
1 parent c5bc11e commit 2bc9060
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions apps/laboratory/tests/canary.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// eslint-disable-file no-console

import { testConnectedMW } from './shared/fixtures/w3m-wallet-fixture'
import { uploadCanaryResultsToCloudWatch } from './shared/utils/metrics'
import { expectConnection } from './shared/utils/validation'
Expand All @@ -6,10 +8,8 @@ const ENV = process.env['ENVIRONMENT'] || 'dev'
const REGION = process.env['REGION'] || 'eu-central-1'

testConnectedMW.beforeEach(async ({ modalValidator, walletValidator }) => {
// eslint-disable-next-line no-console
console.time('beforeEach expectConnection')

Check failure on line 11 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
await expectConnection(modalValidator, walletValidator)
// eslint-disable-next-line no-console
console.timeEnd('beforeEach expectConnection')

Check failure on line 13 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
})

Expand All @@ -19,7 +19,6 @@ testConnectedMW.afterEach(async ({ browserName }, testInfo) => {
}

if (ENV !== 'dev') {
// eslint-disable-next-line no-console
console.time('uploadCanaryResultsToCloudWatch')

Check failure on line 22 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
const duration: number = testInfo.duration
await uploadCanaryResultsToCloudWatch(
Expand All @@ -30,48 +29,33 @@ testConnectedMW.afterEach(async ({ browserName }, testInfo) => {
testInfo.status === 'passed',
duration
)
// eslint-disable-next-line no-console
console.timeEnd('uploadCanaryResultsToCloudWatch')

Check failure on line 32 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
}
})

testConnectedMW(
'it should sign',
async ({ modalPage, walletPage, modalValidator, walletValidator }) => {
// eslint-disable-next-line no-console
console.time('modalPage.sign()')

Check failure on line 39 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
await modalPage.sign()
// eslint-disable-next-line no-console
console.timeEnd('modalPage.sign()')

Check failure on line 41 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
// eslint-disable-next-line no-console
console.time('walletValidator.expectReceivedSign')

Check failure on line 42 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
await walletValidator.expectReceivedSign({})
// eslint-disable-next-line no-console
console.timeEnd('walletValidator.expectReceivedSign')

Check failure on line 44 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
// eslint-disable-next-line no-console
console.time('walletPage.handleRequest')

Check failure on line 45 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
await walletPage.handleRequest({ accept: true })
// eslint-disable-next-line no-console
console.timeEnd('walletPage.handleRequest')

Check failure on line 47 in apps/laboratory/tests/canary.spec.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Unexpected console statement
// eslint-disable-next-line no-console
console.time('modalValidator.expectAcceptedSign')
await modalValidator.expectAcceptedSign()
// eslint-disable-next-line no-console
console.timeEnd('modalValidator.expectAcceptedSign')
// eslint-disable-next-line no-console
console.time('modalPage.disconnect')
await modalPage.disconnect()
// eslint-disable-next-line no-console
console.timeEnd('modalPage.disconnect')
// eslint-disable-next-line no-console
console.time('modalValidator.expectDisconnected')
await modalValidator.expectDisconnected()
// eslint-disable-next-line no-console
console.timeEnd('modalValidator.expectDisconnected')
// eslint-disable-next-line no-console
console.time('walletValidator.expectDisconnected')
await walletValidator.expectDisconnected()
// eslint-disable-next-line no-console
console.timeEnd('walletValidator.expectDisconnected')
}
)

0 comments on commit 2bc9060

Please sign in to comment.