Skip to content

Commit

Permalink
Deal with escaping differently
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed Jul 23, 2024
1 parent 2192c8b commit f887850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jest-dom/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const extensions = ['.js', '.jsx', '.es6', '.es', '.mjs', '.ts', '.tsx'];

const stubs = {
[require.resolve('@testing-library/jest-dom/dist/to-have-style')]: `
export { toHaveStyle } from "${require
.resolve('./to-have-style')
.replaceAll(path.sep, '/')}"
export { toHaveStyle } from ${JSON.stringify(
require.resolve('./to-have-style'),
)}
`,
// No need for polyfill in real browser
'css.escape': `
Expand Down

0 comments on commit f887850

Please sign in to comment.