Skip to content

Commit

Permalink
Merge pull request hotwired#981 from AfolabiOlaoluwa/test-framework-f…
Browse files Browse the repository at this point in the history
…ixes

fix: Resolve issues with timeouts and target closures in test framework
  • Loading branch information
Alberto Fernández-Capel authored and shiftyp committed Sep 8, 2023
1 parent 721c81d commit 949d936
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { playwrightLauncher } from '@web/test-runner-playwright';
import { esbuildPlugin } from '@web/dev-server-esbuild'
import { playwrightLauncher } from '@web/test-runner-playwright'

/** @type {import("@web/test-runner").TestRunnerConfig} */
export default {
browsers: [
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'firefox' }),
playwrightLauncher({ product: 'webkit' }),
playwrightLauncher({
product: 'chromium',
launchOptions: {
timeout: 60000
}
}),
playwrightLauncher({
product: 'firefox',
launchOptions: {
timeout: 60000
}
}),
playwrightLauncher({
product: 'webkit',
launchOptions: {
timeout: 60000
}
})
],
browserStartTimeout: 600000,
nodeResolve: true,
files: "./src/tests/unit/**/*_tests.ts",
testFramework: {
Expand All @@ -17,5 +33,5 @@ export default {
},
plugins: [
esbuildPlugin({ ts: true, target: "es2020" })
],
};
]
}

0 comments on commit 949d936

Please sign in to comment.