@@ -47,7 +47,9 @@ export const describeIf = (
47
47
condition
48
48
? describe ( title , factory )
49
49
: describe ( title , ( ) => {
50
- it . skip ( "skipped" , ( ) => { } ) ;
50
+ it . skip ( "skipped" , ( ) => {
51
+ // Ignore
52
+ } ) ;
51
53
} ) ;
52
54
53
55
export const fixtureDir = fileURLToPath (
@@ -73,7 +75,9 @@ export async function setupTest(
73
75
) {
74
76
const presetTmpDir = getPresetTmpDir ( preset ) ;
75
77
76
- await fsp . rm ( presetTmpDir , { recursive : true } ) . catch ( ( ) => { } ) ;
78
+ await fsp . rm ( presetTmpDir , { recursive : true } ) . catch ( ( ) => {
79
+ // Ignore
80
+ } ) ;
77
81
await fsp . mkdir ( presetTmpDir , { recursive : true } ) ;
78
82
79
83
const ctx : Context = {
@@ -362,20 +366,14 @@ export function testNitro(
362
366
const { status, headers } = await callHandler ( { url : "/favicon.ico" } ) ;
363
367
expect ( status ) . toBe ( 200 ) ;
364
368
expect ( headers . etag ) . toBeDefined ( ) ;
365
- expect ( headers [ "content-type" ] ) . toMatchInlineSnapshot (
366
- '"image/vnd.microsoft.icon"'
367
- ) ;
369
+ expect ( headers [ "content-type" ] ) . toBe ( "image/vnd.microsoft.icon" ) ;
368
370
} ) ;
369
371
370
372
it ( "serve static asset /build/test.txt" , async ( ) => {
371
373
const { status, headers } = await callHandler ( { url : "/build/test.txt" } ) ;
372
374
expect ( status ) . toBe ( 200 ) ;
373
- expect ( headers . etag ) . toMatchInlineSnapshot (
374
- `""7-vxGfAKTuGVGhpDZqQLqV60dnKPw""`
375
- ) ;
376
- expect ( headers [ "content-type" ] ) . toMatchInlineSnapshot (
377
- '"text/plain; charset=utf-8"'
378
- ) ;
375
+ expect ( headers . etag ) . toBe ( '"7-vxGfAKTuGVGhpDZqQLqV60dnKPw"' ) ;
376
+ expect ( headers [ "content-type" ] ) . toBe ( "text/plain; charset=utf-8" ) ;
379
377
} ) ;
380
378
381
379
it ( "stores content-type for prerendered routes" , async ( ) => {
@@ -394,11 +392,9 @@ export function testNitro(
394
392
395
393
it ( "find auto imported utils" , async ( ) => {
396
394
const res = await callHandler ( { url : "/imports" } ) ;
397
- expect ( res . data ) . toMatchInlineSnapshot ( `
398
- {
399
- "testUtil": 123,
400
- }
401
- ` ) ;
395
+ expect ( res . data ) . toMatchObject ( {
396
+ testUtil : 123 ,
397
+ } ) ;
402
398
} ) ;
403
399
404
400
it . skipIf ( ctx . preset === "deno-server" ) (
0 commit comments