Skip to content

Commit

Permalink
test: longer test timeout for github actions & better tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-pelagatti committed Oct 20, 2023
1 parent 0b18e9b commit 8dad3bb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { afterAll, beforeAll, expect, jest } from '@jest/globals'
import { readFile } from 'fs/promises'
import { join } from 'path'
import puppeteer, { ConsoleMessage } from 'puppeteer'

beforeAll(async () => {
globalThis.browser = await puppeteer.launch({
args: [
Expand Down Expand Up @@ -46,7 +47,7 @@ export const getTestbed = async () => {
request.continue()
})

const response = await page.goto(`file://${join(__dirname, './testbed.html')}`)
const response = await page.goto(`file://${join(__dirname, './testbed.html')}`, { timeout: 0 })
expect(response).not.toBeNull()
expect(response?.status()).toBe(200)

Expand Down
2 changes: 1 addition & 1 deletion tests/encode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ describe('encoder', () => {
gainMapMax: result.gainMapMax
}, null, 2)
))
}, 20000)
}, 50000)
})
File renamed without changes.
15 changes: 15 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"strict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noErrorTruncation": true,
"noImplicitAny": true,
"noImplicitThis": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ES2015"
}
}

0 comments on commit 8dad3bb

Please sign in to comment.