Skip to content

Commit c57ea64

Browse files
committed
use Windows and unix type separators to regex
1 parent 4db338a commit c57ea64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@tailwindcss-postcss/src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,14 @@ describe('@content', () => {
268268

269269
expect(result.messages).toContainEqual({
270270
type: 'dependency',
271-
file: expect.stringMatching(/other-project\/src\/index.js$/g),
271+
file: expect.stringMatching(/other-project[\\/]src[\\/]index.js$/g),
272272
parent: expect.any(String),
273273
plugin: '@tailwindcss/postcss',
274274
})
275275

276276
expect(result.messages).toContainEqual({
277277
type: 'dir-dependency',
278-
dir: expect.stringMatching(/other-project\/src/),
278+
dir: expect.stringMatching(/other-project[\\/]src/),
279279
glob: '**/*.js',
280280
parent: expect.any(String),
281281
plugin: '@tailwindcss/postcss',

0 commit comments

Comments
 (0)