The docs on Gun's Panic are written from the point of view of someone testing Gun itself, rather than an app that uses Gun. As such it isn't very helpful in how to get started, and the tests aren't all that applicable. So, I figured I'd share my findings after building Panic tests for my app.
refs:
- https://github.com/gundb/panic-server
- https://gun.eco/docs/Panic
- https://www.npmjs.com/package/panic-server
NB, in my case, I was using Gun in an extension, so my 'app' is quite well separated from the panic server. Most people will be testing Gun in a regular web page, so it might be simpler.
- in the project you want to test, install dev dependency gun-server:
npm install --save-dev panic-server