mmanela / chutzpah

Chutzpah is an open source JavaScript test runner which enables you to run unit tests using QUnit, Jasmine, Mocha and TypeScript.
http://mmanela.github.io/chutzpah/
Apache License 2.0
550 stars 143 forks source link

QUnit tests not detected in Visual Studio 2019 #800

Closed icnocop closed 3 years ago

icnocop commented 3 years ago

Hi.

Thank you for this JavaScript Test Runner.

I've attached a sample project that can reproduce the issue.

ChutzpahTestProject.zip

Steps to reproduce:

  1. Download and unzip attached file.
  2. Open ChutzpahTestProject.sln in Visual Studio 2019
  3. Right-click on the solution node in Solution Explorer and select "Restore Client-Side libraries"
  4. Build the solution
  5. Observe chutzpah.log in ChutzpahTestProject and wait until test discovery finishes
  6. Notice chutzpah did not discover the test "My test" in .\ChutzpahTestProject\wwwroot\js\MyFileTests.ts

chutzpah.log

If I manually run chutzpah.console.exe v4.4.8 like this: chutzpah.console.exe MyFileTests.ts /debug /trace /openInBrowser it works as expected.

chutzpah.log

Any ideas?

Thank you.

icnocop commented 3 years ago

I was able to resolve this after making changes to the systemjs loader configuration, system.config.ts.