{"_id":"@blocken-jordy/test-library","name":"@blocken-jordy/test-library","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@blocken-jordy/test-library","version":"0.0.1","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Blocken-Jordy/test-library.git"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc"},"peerDependencies":{"@axe-core/playwright":"^4.10.0","@playwright/test":"^1.40.0","dotenv":"^16.0.0","msw":"^2.0.0","playwright-msw":"^3.0.0"},"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"_id":"@blocken-jordy/test-library@0.0.1","gitHead":"2349eda10567099107a5329a69095b06f174fe55","description":"Shared Playwright E2E testing library.","bugs":{"url":"https://github.com/Blocken-Jordy/test-library/issues"},"homepage":"https://github.com/Blocken-Jordy/test-library#readme","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-AYVKhaZYK1hxwSdsGNlLEjaW495V+MX0Y0lOcGI6/FL0zmOy/G4azobVJNQALea8kGyP0uxwlN5FqEAcjGV1sQ==","shasum":"aae6b2a0c019123c41c9d061054789eb2cff9de3","tarball":"https://registry.npmjs.org/@blocken-jordy/test-library/-/test-library-0.0.1.tgz","fileCount":32,"unpackedSize":33518,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDsNMTM7MZRs8w0Hx+yAglf9D+265YG69Ix/Kmu8U5ZDAiEAul3c48l52sfFSJI8cUy11Q3CaTNxz5KKHzfrxa56iSs="}]},"_npmUser":{"name":"jordy-blocken","email":"blocken.jordy@gmail.com"},"directories":{},"maintainers":[{"name":"jordy-blocken","email":"blocken.jordy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/test-library_0.0.1_1764758351162_0.2731746201226741"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-03T10:39:11.092Z","0.0.1":"2025-12-03T10:39:11.353Z","modified":"2025-12-03T10:39:11.604Z"},"maintainers":[{"name":"jordy-blocken","email":"blocken.jordy@gmail.com"}],"description":"Shared Playwright E2E testing library.","homepage":"https://github.com/Blocken-Jordy/test-library#readme","repository":{"type":"git","url":"git+https://github.com/Blocken-Jordy/test-library.git"},"bugs":{"url":"https://github.com/Blocken-Jordy/test-library/issues"},"readme":"# @wisemen/test-library\n\nShared Playwright E2E testing library.\n\n## Installation\n\n```bash\npnpm add -D @wisemen/test-library\n```\n\n## Usage\n\n### Configuration\n\nCreate `playwright.config.ts` in your project root:\n\n```typescript\nimport { createConfig } from '@wisemen/test-library'\n\nexport default createConfig({\n  port: 4000,\n  envFile: '.env.test',\n  webServerCommand: 'pnpm dev --port 4000',\n  // Add other options or override projects\n})\n```\n\n### Fixtures\n\nCreate `tests/fixture/base.fixture.ts` (or similar):\n\n```typescript\nimport { createTest } from '@wisemen/test-library'\nimport { authHandlers } from '@/mocks/handlers/auth.mock'\n// Import other handlers\n\n// Define your permission type if needed, or use string\ntype PermissionType = string\n\nexport const test = createTest<PermissionType>([\n  ...authHandlers,\n  // ... other handlers\n])\n```\n\n### Utilities\n\n```typescript\nimport { setupWebSocketMock, runAccessibilityCheck } from '@wisemen/test-library'\n```\n\n## Requirements\n\nProjects using this library must provide:\n\n1.  **MSW Handlers**: You must pass your MSW handlers to `createTest`.\n2.  **Permissions**: If using `userPermissions` fixture, ensure your app reads `window.__TEST_PERMISSIONS__` or similar if you want to mock permissions client-side, and the library handles setting them for MSW.\n3.  **Environment Variables**: Ensure `.env.test` (or specified env file) exists.\n","readmeFilename":"README.md","_rev":"1-5b901ef33a05b2534ec3359c2fbd33a6"}