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 3202e88 commit 488bfbfCopy full SHA for 488bfbf
createTestServer.js
@@ -159,6 +159,7 @@ export async function createTestServer( {
159
160
// No .mjs or .cjs files are used in tests
161
".js": "application/javascript",
162
+ ".json": "application/json",
163
".css": "text/css",
164
".html": "text/html",
165
".xml": "application/xml",
@@ -209,7 +210,9 @@ export async function createTestServer( {
209
210
res.end();
211
} );
212
} else {
- console.error( `Invalid file extension: ${ ext }` );
213
+ if ( !quiet ) {
214
+ console.error( `Invalid file extension: ${ ext }` );
215
+ }
216
res.writeHead( 404 );
217
218
}
0 commit comments