Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Jan 16, 2025
1 parent 233a1bc commit f7318f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/page-spy-browser/tests/plugins/system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ describe('System plugin', () => {
const result = await computeResult();

const features = [
'Element',
'Feature',
'Network',
'Javascript',
'CSS',
'Element',
'Storage',
] as const;

Expand Down
7 changes: 7 additions & 0 deletions packages/page-spy-browser/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ window.Modernizr = {
cb(true);
},
};

// mock window.CSS.supports
if (typeof window.CSS.supports !== 'function') {
window.CSS.supports = (property: string, value?: string) => {
return true;
};
}
7 changes: 0 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5110,13 +5110,6 @@ copy-to-clipboard@^3.3.1, copy-to-clipboard@^3.3.3:
dependencies:
toggle-selection "^1.0.6"

copy-to-clipboard@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz#55ac43a1db8ae639a4bd99511c148cdd1b83a1b0"
integrity sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==
dependencies:
toggle-selection "^1.0.6"

core-js-compat@^3.31.0, core-js-compat@^3.36.1:
version "3.37.0"
resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.37.0.tgz#d9570e544163779bb4dff1031c7972f44918dc73"
Expand Down

0 comments on commit f7318f6

Please sign in to comment.