Skip to content

Instantly share code, notes, and snippets.

@jspies
Created March 19, 2019 23:37
Show Gist options
  • Save jspies/dcde3b5a6249d78a98e4d7debd3d0aa1 to your computer and use it in GitHub Desktop.
Save jspies/dcde3b5a6249d78a98e4d7debd3d0aa1 to your computer and use it in GitHub Desktop.
Test shim
const glob = require("glob");
(async () => {
const matches = glob.sync("**/*_test.mjs");
for (const match of matches) {
await import(`../${match}`)
}
run();
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment