@gopherium/godmin 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/testing.js +8 -0
  2. package/package.json +2 -1
package/dist/testing.js CHANGED
@@ -58,6 +58,14 @@ export async function assertElementPatched(load = () => import('@wordpress/eleme
58
58
  * Prepares the test environment a design system application needs.
59
59
  */
60
60
  export function installTestEnvironment() {
61
+ if (typeof window.matchMedia !== 'function') {
62
+ window.matchMedia = (media) => ({
63
+ media,
64
+ matches: false,
65
+ addEventListener: () => { },
66
+ removeEventListener: () => { },
67
+ });
68
+ }
61
69
  configure({ defaultIgnore: WPDS_IGNORE_SELECTOR });
62
70
  afterEach(clearAnnouncements);
63
71
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@gopherium/godmin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The admin kit for Gopherium projects: host layer for React admin applications on the WordPress Design System.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
+ "packageManager": "pnpm@11.10.0",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "git+https://github.com/gopherium/godmin.git"