This commit is contained in:
Ryan Dahl 2018-10-15 16:46:42 -04:00
parent 1322f3de9f
commit 590feb1c71
5 changed files with 17 additions and 20 deletions

View file

@ -4,6 +4,7 @@ import sys
import subprocess
import re
def run_unit_test2(cmd):
process = subprocess.Popen(
cmd,
@ -26,6 +27,7 @@ def run_unit_test2(cmd):
if errcode != 0:
sys.exit(errcode)
def run_unit_test(deno_exe, permStr, flags=[]):
cmd = [deno_exe, "--reload", "js/unit_tests.ts", permStr] + flags
run_unit_test2(cmd)
@ -48,9 +50,7 @@ def unit_tests(deno_exe):
# These are not strictly unit tests for Deno, but for ts_library_builder.
# They run under Node, but use the same //js/testing/ library.
run_unit_test2([
"node",
"./node_modules/.bin/ts-node",
"--project",
"node", "./node_modules/.bin/ts-node", "--project",
"tools/ts_library_builder/tsconfig.json",
"tools/ts_library_builder/test.ts"
])