File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ export async function createTestServer( {
98
98
res . writeHead ( 200 , { "Content-Type" : "text/html" } ) ;
99
99
res . end (
100
100
indexHTML . replace (
101
- "</head >" ,
102
- "<script src=\"/node_modules/jquery-test-runner/listeners.js\"></script></head >"
101
+ "</body >" ,
102
+ "<script src=\"/node_modules/jquery-test-runner/listeners.js\"></script></body >"
103
103
)
104
104
) ;
105
105
} else {
@@ -161,10 +161,12 @@ export async function createTestServer( {
161
161
} ;
162
162
use ( async ( req , res , next ) => {
163
163
164
- // Allow serving anything but node_modules, except for jquery-test-runner
164
+ // Allow serving anything but node_modules,
165
+ // except for jquery-test-runner and qunit
165
166
if (
166
167
req . url . startsWith ( "/node_modules/" ) &&
167
- ! req . url . startsWith ( "/node_modules/jquery-test-runner/" )
168
+ ! req . url . startsWith ( "/node_modules/jquery-test-runner/" ) &&
169
+ ! req . url . startsWith ( "/node_modules/qunit/" )
168
170
) {
169
171
return next ( ) ;
170
172
}
You can’t perform that action at this time.
0 commit comments