I have several Mocha tests, which I call using mocha
via npm run test
. The tests are separated into multiple name.test.js
files. Additionally they share some functions though imports (ES6).
I need to be able to run those tests, without having Node or NPM installed on the machine. So I wanted to check out if and how pkg
can handle this.
Any idea if this is possible and, if it is, how it can be done?