This is from an old code I did:
When I had to lookup how p5js decides to go “Global Mode” and then hack it:
As you can notice, if we assign anything “truthy” to mocha, p5.js library will never auto-instantiate p5!
Well, unless we do it ourselves later.
Same for _setupDone, but for suppressing the annoying warn() message:
2 Likes