From fa5781eaede281ef422ab69e268fc45f9c210936 Mon Sep 17 00:00:00 2001 From: k Date: Sat, 14 Oct 2023 14:53:43 +0200 Subject: [PATCH] [ci] fix tests with node 18 --- .github/workflows/test.yml | 6 +++--- test/src/TestMain.hx | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 619e884..c5dddc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,9 +28,9 @@ jobs: haxelib git tink_hxx git@github.com:kLabz/tink_hxx.git haxelib git tink_anon git@github.com:haxetink/tink_anon.git - # - name: Run tests - # run: | - # haxelib run munit test -js + - name: Run tests + run: | + haxelib run munit test -js - name: "[Samples] SSR sample : react-next docs website" run: | diff --git a/test/src/TestMain.hx b/test/src/TestMain.hx index 05ab541..3304d57 100644 --- a/test/src/TestMain.hx +++ b/test/src/TestMain.hx @@ -22,12 +22,14 @@ class TestMain var suites = new Array>(); suites.push(TestSuite); + var host = "http://127.0.0.1:2000/"; + #if MCOVER var client = new mcover.coverage.munit.client.MCoverPrintClient(); - var httpClient = new HTTPClient(new mcover.coverage.munit.client.MCoverSummaryReportClient()); + var httpClient = new HTTPClient(new mcover.coverage.munit.client.MCoverSummaryReportClient(), host); #else var client = new RichPrintClient(); - var httpClient = new HTTPClient(new SummaryReportClient()); + var httpClient = new HTTPClient(new SummaryReportClient(), host); #end var runner:TestRunner = new TestRunner(client);