-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
// environment: 'happy-dom'
console.log(CSS); // { escape: [Function: cssEscape] }
expect(CSS.escape).toBeDefined(); // ok
expect(CSS.supports).toBeDefined(); // not okbecuase happy-dom depends css.escape, it will change global.CSS to { escape: cssEscape } when import it
https://github.com/mathiasbynens/CSS.escape/blob/master/css.escape.js#L97-L101
Reproduction
System Info
System:
OS: macOS 13.2
CPU: (8) arm64 Apple M1
Memory: 155.31 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/Library/Caches/fnm_multishells/15709_1700617114296/bin/node
npm: 10.1.0 - ~/Library/Caches/fnm_multishells/15709_1700617114296/bin/npm
pnpm: 8.10.5 - ~/Library/Caches/fnm_multishells/15709_1700617114296/bin/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
Browsers:
Chrome: 119.0.6045.159
Edge: 116.0.1938.76
Safari: 16.3
Safari Technology Preview: 16.4
npmPackages:
@vitest/coverage-v8: 1.0.0-beta.4 => 1.0.0-beta.4
vitest: 1.0.0-beta.4 => 1.0.0-beta.4Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)