knocklabs / javascript

Official JavaScript packages for interacting with Knock
https://knock.app/
MIT License
11 stars 2 forks source link

chore: add testing set up and base coverage for React SDKs #41

Closed connorlindsey closed 5 months ago

connorlindsey commented 5 months ago

Sets up Vitest and testing-library for react and react-core with a few base test cases.

Holding off on react native as Vitest doesn't support it. There are some workarounds we could consider like rendering using react-native-web during testing or using Jest. https://github.com/vitest-dev/vitest/issues/1321

changeset-bot[bot] commented 5 months ago

⚠️ No Changeset found

Latest commit: 58673cabb5b5b12fc2ba9e4a5fbbb4d4d1f1d85e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR