A package, which prevents accidental execute tests in the production environment
Hi everyone,
I'm thinking of writing a package, which prevents executing tests in production. It may sound silly, but I have heard such incidents has happened in past.
Although there are ways like preventing installing dev dependencies, I believe there can be a slip-up, (since we are humans).
My target is mainly testing suits like 'Mocha', 'jasmine' and backend tests like integration tests or unit tests for microservice and other backend packages.
I saw that 'mocha' runner can be identified by node_modules/mocha/bin/_mocha.
I would kindly like to know thoughts and ideas about it. Thank you.