UNPKG

mock-match-media

Version:

mock window.matchMedia for tests or node

53 lines 1.44 kB
{ "name": "mock-match-media", "version": "1.0.3", "description": "mock window.matchMedia for tests or node", "repository": "git@github.com:Ayc0/mock-match-media.git", "author": "Ayc0 <ayc0.benj@gmail.com>", "license": "MIT", "bugs": "https://github.com/Ayc0/mock-match-media/issues", "homepage": "https://github.com/Ayc0/mock-match-media#readme", "keywords": [ "match-media", "mock", "test", "jest", "ssr", "server-side-rendering" ], "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs", "browser": "./dist/index.mjs" }, "./package.json": "./package.json", "./polyfill": { "types": "./polyfill.d.ts", "require": "./polyfill.cjs", "import": "./polyfill.mjs" }, "./jest-setup": { "types": "./jest-setup.d.ts", "require": "./jest-setup.cjs" } }, "volta": { "node": "24.6.0", "pnpm": "10.15.0" }, "devDependencies": { "media-query-fns": "^2.1.2", "tsdown": "^0.14.2", "typescript": "^5.9.2" }, "scripts": { "build": "rm -rf dist && tsdown --format esm --format cjs", "//": "--test-reporter spec is just here for node 20 & 22 for CI. Starting from Node 23, this is the default", "test": "node --test --test-reporter spec" } }