Skip to content

reatom/reusables

Repository files navigation

@reatom/reusables

A collection of reusable Reatom factories and extensions distributed via jsrepo.

Installation

First, initialize jsrepo in your project:

npx jsrepo init https://github.com/reatom/reusables

Usage

Add a specific item

npx jsrepo add reatomInstance

Add multiple items

npx jsrepo add reatomInstance withInstance

Interactive mode

Browse and select items interactively:

npx jsrepo add

Testing

This repository includes a reusable test harness for testing Reatom applications with automatic context management.

Add the test harness

npx jsrepo add test

The test harness provides:

  • Automatic Reatom context management in tests
  • Mock subscription utilities for tracking atom updates
  • Full Vitest compatibility with enhanced testing capabilities

For detailed documentation, see the test harness README.

Documentation

License

MIT

Releases

No releases published

Packages

 
 
 

Contributors