https://github.com/rapidjs-org/testing
Context-based, (a)sync-uniform testing framework for JavaScript and TypeScript.
https://github.com/rapidjs-org/testing
framework javascript test testing typescipt
Last synced: 2 months ago
JSON representation
Context-based, (a)sync-uniform testing framework for JavaScript and TypeScript.
- Host: GitHub
- URL: https://github.com/rapidjs-org/testing
- Owner: rapidjs-org
- License: apache-2.0
- Created: 2022-07-07T16:36:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T15:15:45.000Z (over 1 year ago)
- Last Synced: 2025-11-23T13:01:11.277Z (4 months ago)
- Topics: framework, javascript, test, testing, typescipt
- Language: TypeScript
- Homepage:
- Size: 335 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rJS Testing
Context-based, (a)sync-uniform testing framework for JavaScript and TypeScript.
### 📖   [Read the Docs](./packages/testing/README.md)
``` cli
npm install -D @rapidjs.org/testing
```
``` js
function divide(a, b) {
if(b === 0) throw new SyntaxError("Division by zero");
return a / b;
}
new UnitTest("Computes quotient of positive integers")
.actual(divide(4, 2))
.expected(2);
new UnitTest("Throws error for division by zero")
.actual(() => divide(2, 0))
.error("Division by zero", SyntaxError);
```
### 🔧   Testing Suites
**🔩   [Unit](./packages/@unit/README.md)**   `unit`
> Test arbitrary units of code based on deep expected value comparisons.
**🔩   [HTTP](./packages/@http/README.md)**   `http`
> Test HTTP(S) endpoints based on expectation filtered responses.
**🔩   [CLI](./packages/@cli/README.md)**   `cli`
> Test command line interfaces based on expected stdout or stderr.
##
© Thassilo Martin Schiepanski