Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/sv/src/addons/tests/tailwindcss/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ const { test, prepareServer, testCases } = setupTest(

test.concurrent.for(testCases)(
'tailwindcss $kind.type $variant',
async (testCase, { page, ...ctx }) => {
async (testCase, { page, expect: vExpect, ...ctx }) => {
const cwd = ctx.cwd(testCase);

// ...add test files
addFixture(cwd, testCase.variant);

const { close } = await prepareServer({ cwd, page });
// we'll pass in vitest's `expect` instance to satisfy our `requireAssertion: true` requirement (it would otherwise _occasionally_ fail without it)
const { close } = await prepareServer({ cwd, page, expect: vExpect });
// kill server process when we're done
ctx.onTestFinished(async () => await close());

Expand Down
Loading