We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fc1404 commit c65bfc3Copy full SHA for c65bfc3
examples/mocking.js
@@ -40,3 +40,6 @@ port.on('open', () => {
40
// To pretend to receive data (only works on open ports)
41
port.binding.emitData(Buffer.from('Hi from my test!'));
42
});
43
+
44
+// When you're done you can destroy all ports with
45
+MockBinding.reset();
0 commit comments