This pull request introduces several updates and refactors across the Badge component and Tabs component tests. Notably, it includes the use of createEffect and createSignal in the Badge component for enhanced state management and reactivity. Additionally, the testing approach for the Tabs component has been overhauled to utilize the @solidjs/testing-library for a more integrated testing experience with SolidJS components.
Summary
Updated Badge.tsx to import createEffect and createSignal from solid-js for improved state management.
Refactored Badge.tsx to use splitProps for better props management and to align with SolidJS best practices.
Transitioned Tabs.spec.tsx tests from using @testing-library/react and userEvent to @solidjs/testing-library and a custom setupUserEvent function, streamlining the testing process for SolidJS components.
Replaced direct userEvent calls with fireEvent where applicable, enhancing test reliability and consistency.
Files affected:
src/components/Badge/Badge.tsx
src/components/Tabs/Tabs.spec.tsx
Fixes #24.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces several updates and refactors across the Badge component and Tabs component tests. Notably, it includes the use of
createEffect
andcreateSignal
in the Badge component for enhanced state management and reactivity. Additionally, the testing approach for the Tabs component has been overhauled to utilize the@solidjs/testing-library
for a more integrated testing experience with SolidJS components.Summary
Badge.tsx
to importcreateEffect
andcreateSignal
fromsolid-js
for improved state management.Badge.tsx
to usesplitProps
for better props management and to align with SolidJS best practices.Tabs.spec.tsx
tests from using@testing-library/react
anduserEvent
to@solidjs/testing-library
and a customsetupUserEvent
function, streamlining the testing process for SolidJS components.userEvent
calls withfireEvent
where applicable, enhancing test reliability and consistency.src/components/Badge/Badge.tsx
src/components/Tabs/Tabs.spec.tsx
Fixes #24.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: