Skip to content

Commit 76314f4

Browse files
committed
test: updating tests runtime config
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
1 parent 16f0fa1 commit 76314f4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

web-test-runner.config.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export default {
1+
/** @typedef {import('@web/test-runner').TestRunnerConfig} TestRunnerConfig */
2+
3+
export default /** @type TestRunnerConfig */ ({
24
files: 'test/**/*.test.js',
35
nodeResolve: true,
46
middleware: [
@@ -9,11 +11,16 @@ export default {
911
return next();
1012
}
1113
],
14+
testFramework: {
15+
config: {
16+
timeout: 10000,
17+
},
18+
},
1219
testRunnerHtml: (testFramework) =>
1320
`<html>
1421
<body>
1522
<script src="../demo/vendor.js"></script>
1623
<script type="module" src="${testFramework}"></script>
1724
</body>
1825
</html>`
19-
};
26+
});

0 commit comments

Comments
 (0)