Skip to content

Commit

Permalink
use Windows and unix type separators to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Aug 5, 2024
1 parent 4db338a commit c57ea64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@tailwindcss-postcss/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,14 @@ describe('@content', () => {

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

expect(result.messages).toContainEqual({
type: 'dir-dependency',
dir: expect.stringMatching(/other-project\/src/),
dir: expect.stringMatching(/other-project[\\/]src/),
glob: '**/*.js',
parent: expect.any(String),
plugin: '@tailwindcss/postcss',
Expand Down

0 comments on commit c57ea64

Please sign in to comment.