Skip to content

Commit

Permalink
Don't assert on mangled CSS names (#14397)
Browse files Browse the repository at this point in the history
This PR fixes an issue with the regex rule I oh-so-carefully constructed
that would fail the regex when the _randomness_ part contains a `t`
😶‍🌫️.
  • Loading branch information
philipp-spiess authored Sep 11, 2024
1 parent 63390c9 commit 7244f27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions integrations/vite/css-modules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ for (let transformer of ['postcss', 'lightningcss']) {
expect(files).toHaveLength(1)
let [filename] = files[0]

await fs.expectFileToContain(filename, [
/\.[^f]*_foo[^t]*text-decoration-line: underline;/gi,
])
await fs.expectFileToContain(filename, [/text-decoration-line: underline;/gi])
},
)
})
Expand Down

0 comments on commit 7244f27

Please sign in to comment.