1.0.1 • Published 4 months ago
nested-proxy v1.0.1
nested-proxy
Lightweight package for deep stubbing.
Usage
import { NestedProxy } from 'nested-proxy';
const stub = new NestedProxy();
console.log(stub.a.b.c); // Proxy object
console.log(stub.a.b.c()); // {};
console.log(stub['a'].b.['c'].d()); // {}