File tree Expand file tree Collapse file tree 1 file changed +13
-26
lines changed
Expand file tree Collapse file tree 1 file changed +13
-26
lines changed Original file line number Diff line number Diff line change 1- /** @typedef {import('@web/test-runner').TestRunnerConfig } TestRunnerConfig */
2-
3- export default /** @type TestRunnerConfig */ ( {
4- files : 'test/**/*.test.js' ,
5- nodeResolve : true ,
6- middleware : [
7- function rewriteBase ( context , next ) {
8- if ( context . url . indexOf ( '/base' ) === 0 ) {
9- context . url = context . url . replace ( '/base' , '' ) ;
10- }
11- return next ( ) ;
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- } ) ;
1+ export default {
2+ files : 'test/**/*.test.js' ,
3+ nodeResolve : true ,
4+ middleware : [
5+ function rewriteBase ( context , next ) {
6+ if ( context . url . indexOf ( '/base' ) === 0 ) {
7+ context . url = context . url . replace ( '/base' , '' ) ;
8+ }
9+ return next ( ) ;
10+ }
11+ ] ,
12+ } ;
13+
You can’t perform that action at this time.
0 commit comments