Files
insights-js/packages/react/jest.config.cjs
Paul D'AmbraandGitHub dde7f63282 chore: remove given from posthog/react (#2505)
i didn't realise we still had given2
it hides so much from us by insisting on all the indirection in tests

let's remove it

### Libraries affected

<!-- Please mark which libraries will require a version bump. -->

- [ ] All of them
- [ ] posthog-js (web)
- [ ] posthog-js-lite (web lite)
- [ ] posthog-node
- [ ] posthog-react-native
- [x] @posthog/react
- [ ] @posthog/ai
- [ ] @posthog/nextjs-config

## Checklist

- [ ] Tests for new code
- [ ] Accounted for the impact of any changes across different platforms
- [ ] Accounted for backwards compatibility of any changes (no breaking changes!)
- [ ] Took care not to unnecessarily increase the bundle size

### If releasing new changes

- [ ] Ran `pnpm changeset` to generate a changeset file
- [ ] Added the "release" label to the PR to indicate we're publishing new versions for the affected packages

<!-- For more details check RELEASING.md -->
2025-10-27 13:19:07 +00:00

7 lines
149 B
JavaScript

module.exports = {
roots: ['src'],
testPathIgnorePatterns: ['/node_modules/', 'dist'],
clearMocks: true,
testEnvironment: 'jsdom',
}