{"_id":"@dbarrett24/jest-config-library","_rev":"3-017e1d9aea7701402e25a60cef7d86ea","name":"@dbarrett24/jest-config-library","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@dbarrett24/jest-config-library","version":"1.0.0","keywords":["jest","testing","react","library","typescript"],"author":{"name":"Your Name"},"license":"MIT","_id":"@dbarrett24/jest-config-library@1.0.0","maintainers":[{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"}],"dist":{"shasum":"dd10eda2f13bd277ad98c9b591c2f125de727d30","tarball":"https://registry.npmjs.org/@dbarrett24/jest-config-library/-/jest-config-library-1.0.0.tgz","fileCount":3,"integrity":"sha512-m+PukqOoGr7JiT0SHbyyP7y5y9uWX3cBqJ4+O1TDVVN0wYFXRto6BdJK5sQSr5VqjWf7XZJwh9ohyOSs0EyGyQ==","signatures":[{"sig":"MEUCIB6aD2Il41OrOICgTGU5yruPwpSWUjpIm6ovEAPV49S2AiEAoUCfdaOHyan/OTV0MQi8Kh8tKdRC+s+iiRzUw1KxCCY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3262},"main":"jest.config.js","_from":"file:dbarrett24-jest-config-library-1.0.0.tgz","_npmUser":{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"},"_resolved":"/private/var/folders/q_/z4dwy_td5ts0fdx2klqhf_900000gn/T/72a9f95815275bab6a249d513f615683/dbarrett24-jest-config-library-1.0.0.tgz","_integrity":"sha512-m+PukqOoGr7JiT0SHbyyP7y5y9uWX3cBqJ4+O1TDVVN0wYFXRto6BdJK5sQSr5VqjWf7XZJwh9ohyOSs0EyGyQ==","_npmVersion":"10.9.3","description":"Shared Jest configuration for React component libraries","directories":{},"_nodeVersion":"22.18.0","dependencies":{"@dbarrett24/jest-config":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"jest":">=29","react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/jest-config-library_1.0.0_1769474807518_0.31288856467034987","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dbarrett24/jest-config-library","version":"1.0.1","keywords":["jest","testing","react","library","typescript"],"author":{"name":"dbarrett24"},"license":"MIT","_id":"@dbarrett24/jest-config-library@1.0.1","maintainers":[{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"}],"homepage":"https://github.com/dbarrett24/evolve-ui#readme","bugs":{"url":"https://github.com/dbarrett24/evolve-ui/issues"},"dist":{"shasum":"1894996c4c8b0dae0458061bb8d3cd59ec3c99db","tarball":"https://registry.npmjs.org/@dbarrett24/jest-config-library/-/jest-config-library-1.0.1.tgz","fileCount":3,"integrity":"sha512-rH1F2L/J5TGx8UVmbc3iva9xwB0AsAm55Gwg1sZl7CzoMVClfybc5m/P7XXkdm4cJ30QIlJpkdLsvSlKLW0w9w==","signatures":[{"sig":"MEUCIQCwumxyxwcZE5qb4GCnmfWH80n66ryz3peT0VdAKaGk8gIgdRg9Q26Yd26h26zBdYAw2sfbxOZBBoD9y9HLTgxVqLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3430},"main":"jest.config.js","_from":"file:dbarrett24-jest-config-library-1.0.1.tgz","_npmUser":{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"},"_resolved":"/private/var/folders/q_/z4dwy_td5ts0fdx2klqhf_900000gn/T/e5ea00ca1f0b5e8c77479f9edbc07be2/dbarrett24-jest-config-library-1.0.1.tgz","_integrity":"sha512-rH1F2L/J5TGx8UVmbc3iva9xwB0AsAm55Gwg1sZl7CzoMVClfybc5m/P7XXkdm4cJ30QIlJpkdLsvSlKLW0w9w==","repository":{"url":"git+https://github.com/dbarrett24/evolve-ui.git","type":"git","directory":"shared-configs/jest-config-library"},"_npmVersion":"11.8.0","description":"Shared Jest configuration for React component libraries","directories":{},"_nodeVersion":"25.5.0","dependencies":{"@dbarrett24/jest-config":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"jest":">=30","react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/jest-config-library_1.0.1_1785214504428_0.6743133418712606","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dbarrett24/jest-config-library","version":"1.0.2","description":"Shared Jest configuration for React component libraries","main":"jest.config.js","keywords":["jest","testing","react","library","typescript"],"author":{"name":"dbarrett24"},"license":"MIT","dependencies":{"@dbarrett24/jest-config":"1.0.2"},"peerDependencies":{"jest":">=30","react":">=18","react-dom":">=18"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/dbarrett24/evolve-ui.git","directory":"shared-configs/jest-config-library"},"_id":"@dbarrett24/jest-config-library@1.0.2","bugs":{"url":"https://github.com/dbarrett24/evolve-ui/issues"},"homepage":"https://github.com/dbarrett24/evolve-ui#readme","_integrity":"sha512-Y0F6dXSEJG9mSh0E/1G0p2u5ozL1R5m936cqPE54HymvJplRdruQrRPUBMd7BIl6YmzapiMmJakAD3nVAmiRjw==","_resolved":"/private/var/folders/q_/z4dwy_td5ts0fdx2klqhf_900000gn/T/d349917dd38b7fd18a78c04719c596d4/dbarrett24-jest-config-library-1.0.2.tgz","_from":"file:dbarrett24-jest-config-library-1.0.2.tgz","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-Y0F6dXSEJG9mSh0E/1G0p2u5ozL1R5m936cqPE54HymvJplRdruQrRPUBMd7BIl6YmzapiMmJakAD3nVAmiRjw==","shasum":"43e7d4e39e3817a06b983eabcfb51bb7cd51a602","tarball":"https://registry.npmjs.org/@dbarrett24/jest-config-library/-/jest-config-library-1.0.2.tgz","fileCount":3,"unpackedSize":3430,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTghwIxelK24oIeDAJq2lM06fU2JiYj/2AoEj7Esh56wIgFSQIksWXYtrzHCtoIvHCIxYvHh0hyaBDMc0nyrJ2CEM="}]},"_npmUser":{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"},"directories":{},"maintainers":[{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jest-config-library_1.0.2_1785251410692_0.16520982843187482"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-27T00:46:47.430Z","modified":"2026-07-28T15:10:11.033Z","1.0.0":"2026-01-27T00:46:47.669Z","1.0.1":"2026-07-28T04:55:04.564Z","1.0.2":"2026-07-28T15:10:10.853Z"},"bugs":{"url":"https://github.com/dbarrett24/evolve-ui/issues"},"author":{"name":"dbarrett24"},"license":"MIT","homepage":"https://github.com/dbarrett24/evolve-ui#readme","keywords":["jest","testing","react","library","typescript"],"repository":{"type":"git","url":"git+https://github.com/dbarrett24/evolve-ui.git","directory":"shared-configs/jest-config-library"},"description":"Shared Jest configuration for React component libraries","maintainers":[{"name":"dbarrett24","email":"dev.davebarrett@gmail.com"}],"readme":"# @dbarrett24/jest-config-library\n\nShared Jest configuration for React component libraries with stricter 95%+ coverage thresholds.\n\n## Installation\n\n```bash\npnpm add -D @dbarrett24/jest-config-library jest @testing-library/react @testing-library/jest-dom @testing-library/user-event\n```\n\n## Usage\n\nCreate `jest.config.js` in your library root:\n\n```javascript\nconst baseConfig = require('@dbarrett24/jest-config-library');\n\nmodule.exports = {\n    ...baseConfig,\n    // Override as needed\n};\n```\n\n## What's Different from @dbarrett24/jest-config\n\n### Higher Coverage Thresholds\n\n- **95% minimum** (vs 90% for apps)\n- Published libraries should be exceptionally well-tested\n\n### Additional Exclusions\n\nAutomatically excludes:\n- `index.ts` files (often just re-exports)\n- `types.ts` files (type-only, no runtime code)\n- Storybook static builds\n\n### Display Name\n\nIncludes library-specific display name for easier debugging in monorepos.\n\n## Setup\n\nSame as base config:\n\n```typescript\n// testing/setupTests.ts\nimport '@testing-library/jest-dom';\n```\n\n```javascript\n// testing/__mocks__/styleMock.js\nmodule.exports = {};\n\n// testing/__mocks__/fileMock.js\nmodule.exports = 'test-file-stub';\n```\n\n## Scripts\n\nAdd to your library's `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\",\n    \"test:coverage\": \"jest --coverage\"\n  }\n}\n```\n\n## Testing Library Components\n\n```typescript\nimport { render, screen } from '@testing-library/react';\nimport { Button } from './Button';\n\ndescribe('Button', () => {\n    it('renders correctly', () => {\n        render(<Button>Click me</Button>);\n        expect(screen.getByText('Click me')).toBeVisible();\n    });\n});\n```\n\n## License\n\nMIT\n\n","readmeFilename":"README.md"}