mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Format
This commit is contained in:
parent
1322f3de9f
commit
590feb1c71
5 changed files with 17 additions and 20 deletions
|
@ -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"
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue