deno-runner.js 434 B

123456789101112131415
  1. /* global Deno */
  2. // Install Deno from https://deno.land and run `deno test --allow-read ./deno-runner.js`
  3. import tests from "./tests-data.js";
  4. for (const test of tests) {
  5. if (test.env != "browser") {
  6. Deno.test({
  7. name: test.title,
  8. fn: async () => (await import("./" + (test.env || "all") + "/" + test.script)).test(),
  9. sanitizeResources: test.sanitizeResources === undefined || test.sanitizeResources === true
  10. });
  11. }
  12. }