commit 9e707a0c7fc648cee5b21c67872b4c03a8ca86bc parent 1085a98482ddbe1b58190495ed1916a767907c02 Author: finwo <finwo@pm.me> Date: Sun, 24 May 2026 22:39:51 +0200 Blind-written readme Diffstat:
| A | README.md | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -0,0 +1,17 @@ +# jest-isa + +Basic instanceof, but with slightly more advanced checking + +## Usage + +```js +const isA = require('jest-isa'); +const jest = require('jest'); + +jest.expect.extend({ + isA, +}); + +test('is a function range', () => expect(function(){}).isA(Function)); +test('is a string' , () => expect("").isA(String)); +```