Skip to content

Commit 4ca70bc

Browse files
Add debugging info for Windows #3
1 parent 6ca3b36 commit 4ca70bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

integrations/vite/index.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ test(
120120
},
121121
},
122122
async ({ root, fs }) => {
123-
execSync('echo %cd%', { cwd: root })
123+
console.log(execSync('echo %cd%', { cwd: root }).toString())
124124
execSync('pnpm run build', { cwd: root })
125125

126-
let [[_, content]] = await fs.glob('dist/**/*.css')
127-
128-
expect(stripTailwindComment(content)).toMatchInlineSnapshot(`
126+
for (let [path, content] of await fs.glob('dist/**/*.css')) {
127+
expect(path).toMatch(/\.css$/)
128+
expect(stripTailwindComment(content)).toMatchInlineSnapshot(`
129129
".m-2 {
130130
margin: var(--spacing-2, .5rem);
131131
}
@@ -134,5 +134,6 @@ test(
134134
text-decoration-line: underline;
135135
}"
136136
`)
137+
}
137138
},
138139
)

0 commit comments

Comments
 (0)