gohyperr / hecs

A high performance lightweight ECS with a plugin ecosystem!
MIT License
23 stars 1 forks source link

console.log messages during tests #30

Open canadaduane opened 3 years ago

canadaduane commented 3 years ago

Perhaps we could add a way to suppress these messages during tests?

image
console.log
    hecs: registered plugin 'root'

      at World.registerPlugin (../../tmp/hecs/packages/hecs/dist/hecs.js:1:24562)

  console.log
    hecs: using 0 bit archetype ids

      at ArchetypeManager.init (../../tmp/hecs/packages/hecs/dist/hecs.js:1:13344)
ashconnell commented 3 years ago

They're useful but i agree they're noisy in tests. I'm not sure of an easy way to suppress them. Any ideas?

canadaduane commented 3 years ago

What do you think of a library like https://www.npmjs.com/package/debug ?