It proved useful for regression testing with valgrind and for certain types of testing before flashing.
Many calls are just stubbed out to get it to link and run with the essentials so mileage will vary.
https://github.com/afnid/espsim
Let me know if you get it to work, find it useful, or would like to contribute any changes.