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 142 forks source link

Error: ReferenceError: Can't find variable: require #746

Closed mgrowan closed 5 years ago

mgrowan commented 5 years ago

Running locally everything is fine. Running on Azure Pipelines using VSTest Task version 1 or 2 passes all tests, but fails the overall task with:

##[error]Error: The process 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe' failed with exit code 1

Within the middle of a block of tests is the error:

Passed MembersController closes add member popup when a member is added Error: ReferenceError: Can't find variable: require [{file:file:///d:/a/1/s/src/packages/Chutzpah.4.4.4/tools/Node/packages/node_modules/safer-buffer/tests.js,line:5,function:global code}] While Running:d:\a\1\s\src\packages\Chutzpah.4.4.4\tools\Node\packages\node_modules\safer-buffer\tests.js

Error: ReferenceError: Can't find variable: require While Running:d:\a\1\s\src\packages\Chutzpah.4.4.4\tools\Node\packages\node_modules\safer-buffer\tests.js

Any ideas?

sjtipton commented 5 years ago

Getting this issue as well in Azure DevOps build only -- all tests pass however. Using Chutzpah 4.4.4. Have another app using Chutzpah 4.3.4, and the Azure DevOps build passes all tests without any issues.

Following this issue.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.