We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f0fa1 commit 76314f4Copy full SHA for 76314f4
web-test-runner.config.mjs
@@ -1,4 +1,6 @@
1
-export default {
+/** @typedef {import('@web/test-runner').TestRunnerConfig} TestRunnerConfig */
2
+
3
+export default /** @type TestRunnerConfig */ ({
4
files: 'test/**/*.test.js',
5
nodeResolve: true,
6
middleware: [
@@ -9,11 +11,16 @@ export default {
9
11
return next();
10
12
}
13
],
14
+ testFramework: {
15
+ config: {
16
+ timeout: 10000,
17
+ },
18
19
testRunnerHtml: (testFramework) =>
20
`<html>
21
<body>
22
<script src="../demo/vendor.js"></script>
23
<script type="module" src="${testFramework}"></script>
24
</body>
25
</html>`
-};
26
+});
0 commit comments