@sldm/testing
v0.3.0
Published
TDD-first testing framework for Solidum
Maintainers
Readme
@sldm/testing
Testing utilities and test runner for Solidum
Installation
npm install @sldm/testing --save-dev
# or
pnpm add @sldm/testing -DFeatures
- 🧪 Test Runner - Built-in test framework
- ⚡ Fast - Lightweight and quick
- 📊 Reporting - Clear test output
Quick Start
import { describe, test, expect } from '@sldm/testing';
import { atom } from '@sldm/core';
describe('atom()', () => {
test('should create reactive atom', () => {
const count = atom(0);
expect(count()).toBe(0);
});
test('should update value', () => {
const count = atom(0);
count(5);
expect(count()).toBe(5);
});
});API
describe(name, fn)- Group teststest(name, fn)- Define a testexpect(value)- Assertions
License
MIT © Matthias Kluth
