README.md (319B)
1 # jest-isa 2 3 Basic instanceof, but with slightly more advanced checking 4 5 ## Usage 6 7 ```js 8 const isA = require('jest-isa'); 9 const jest = require('jest'); 10 11 jest.expect.extend({ 12 isA, 13 }); 14 15 test('is a function range', () => expect(function(){}).isA(Function)); 16 test('is a string' , () => expect("").isA(String)); 17 ```