Skip to content

Commit f7fa77c

Browse files
committed
use fs.expectFileToContain
This has some retries built-in
1 parent 5391827 commit f7fa77c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

integrations/cli/index.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,15 +1303,15 @@ test(
13031303
}
13041304
`,
13051305
)
1306-
await process.onStderr((m) => m.includes('Done in'))
13071306

1308-
expect(await fs.dumpFiles('./dist/*.css')).toMatchInlineSnapshot(`
1309-
"
1310-
--- ./dist/out.css ---
1311-
:root, :host {
1312-
--color-blue-500: blue;
1313-
}
1314-
"
1315-
`)
1307+
fs.expectFileToContain(
1308+
'./dist/out.css',
1309+
css`
1310+
:root,
1311+
:host {
1312+
--color-blue-500: blue;
1313+
}
1314+
`,
1315+
)
13161316
},
13171317
)

0 commit comments

Comments
 (0)