UNPKG

playwright-api-mock

Version:

An automated API response snapshot tool for Playwright. This plugin records API network requests during test runs and reuses them as mocks for fast, reliable, and deterministic tests.

56 lines (55 loc) 1.83 kB
{ "name": "playwright-api-mock", "version": "0.3.1", "description": "An automated API response snapshot tool for Playwright. This plugin records API network requests during test runs and reuses them as mocks for fast, reliable, and deterministic tests.", "files": ["dist"], "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", "scripts": { "postinstall": "npx playwright install chromium", "format": "bun x biome format src --write", "lint": "bun x biome lint src && bun x biome check src", "lint:fix": "bun x biome check src --fix", "build": "bun x tsc && bun build --entrypoints ./src/index.ts --outdir ./dist --target node --minify", "test": "bun test unit-test", "prepublish": "bun run build", "publish": "npm publish --access public", "demo:start": "bun run test/server.js", "demo:test": "playwright test -c test/playwright.config.ts" }, "repository": { "type": "git", "url": "git+https://github.com/DenisBratchikov/playwright-api-mock.git" }, "keywords": [ "playwright", "api-mocking", "test-automation", "http-mocking", "snapshot-testing", "network-interception", "frontend-testing", "testing-tools", "mock-server" ], "author": { "name": "Denis Bratchikov", "url": "https://github.com/DenisBratchikov" }, "license": "MIT", "bugs": { "url": "https://github.com/DenisBratchikov/playwright-api-mock/issues" }, "homepage": "https://github.com/DenisBratchikov/playwright-api-mock#readme", "devDependencies": { "@biomejs/biome": "1.9.4", "@types/bun": "latest", "@playwright/test": "^1.51.0", "express": "^4.21.2" }, "peerDependencies": { "typescript": "^5", "@playwright/test": "^1.51.0" } }