Skip to content

Commit

Permalink
Adress comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Soremwar committed Feb 7, 2021
1 parent 8e27eff commit e0b9967
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
if: matrix.deno == 'canary'
run: deno upgrade --canary

- name: Generate Node tests
run: deno run --allow-all node/testdata/setup.ts

- name: Test
run: deno test --unstable --allow-all

Expand Down
19 changes: 18 additions & 1 deletion node/testdata/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { walk } from "../../fs/walk.ts";
import { basename, dirname, fromFileUrl } from "../../path/mod.ts";
import { assertEquals } from "../../testing/asserts.ts";
import { assertEquals, fail } from "../../testing/asserts.ts";
import { config, testList } from "./common.ts";

/**
Expand All @@ -10,6 +10,23 @@ import { config, testList } from "./common.ts";
* code for the test is reported, the test suite will fail inmediately
*/

const process = Deno.run({
cwd: dirname(fromFileUrl(import.meta.url)),
cmd: [
Deno.execPath(),
"run",
"--allow-read",
"--allow-net",
"--allow-write",
"./setup.ts",
],
});

const { code } = await process.status();
if (code !== 0) {
fail(`Node tests generation process failed with code: "${code}"`);
}

const dir = walk(fromFileUrl(new URL(config.suitesFolder, import.meta.url)), {
includeDirs: false,
match: testList,
Expand Down

0 comments on commit e0b9967

Please sign in to comment.