@robert.tools/testing
v1.0.1
Published
A set of helper for testing
Maintainers
Readme
@robert.tools/testing
A set of helper for testing
Installation
npm install @robert.tools/testing📜 Usage
🟢 Installation
npm install @robert.tools/testing📝 Sample usage
import { spyOnCommand } from '@robert.tools/testing';
const spy = spyOnCommand('hello');
command('curl someurl') // 'result: hello'🗃️ commands
After an npm install with npm i the following commands are available:
- spy on command and return result:
spyOnCommand(result) - spy on URLs and return result:
spyOnURLs(results)
⚖️ Notes
This software is hand-crafted, test-driven and assisted by AI tools. I know each line of my code. ✌️
| Tool | Comment |
| --- | --- |
| | Test-driven development with Jest |
|
| Part of the robert.tools ecosystem |
|
| Code completion |
|
| chatGPT research |
