-
Notifications
You must be signed in to change notification settings - Fork 168
Fixed broken Mocha test for aspnet:Config sub-generator #420
Conversation
- add template and subgenerator - add test coverage - update documentation
…ibrary ⬆️ Update Class library for beta8. Closes OmniSharp#381
Update WebBasic template for beta8. Closes OmniSharp#384.
Address Beta8: Update Dockerfile subgenerator OmniSharp#395
…enerator Add NuGet.config generator. Closes OmniSharp#398
- remove hosting.ini - remove config.json - add appsettings.json - great beta8 renaming - implementation changes - update copy routine - update test coverage - add web.config file to project Note: web.config file is probably needed when hosting in IIS container
- remove hosting.ini from project - rewrite kestrel/web commands - update copy routine - update test - add web.config file Note: the web.config file is probably needed for hosting in IIS container
Note: the web.config is problaby required when hosting your project on IIS container
…pplication ⬆️ Update Empty Application for beta8. Closes OmniSharp#382
…-application ⬆️ Update Console Application for beta8. Closes OmniSharp#380
…lication ⬆️ Update Web Application for beta8. Closes OmniSharp#385
…-web-app-basic Add missing web.config to web basic template
ASP.NET Beta8: Nancy ASP.NET Application OmniSharp#388
Update project animation of CLI usage for beta8
Update Web API Template for beta8. Closes OmniSharp#383
⬆️ Update project deps for ConsoleApplication for beta8. Closes OmniSharp#408
|
@peterblazejewicz agreed, I am not getting any errors on |
@peterblazejewicz To answer your questions:
My question to @spboyer and @peterblazejewicz would be, what's different with your setups that you're not encountering this problem? Specifically, which versions of Node and npm are you using? |
OS X/Node 0.12.* because of this: #351, NPM 2.11.* |
I'm running node 0.10.38 or 0.12.x and npm 2.14.x on OSX, and the same versions in WIN 10. I have not done any testing on npm 3.x or node 4. Before rc1 we need to put this into the test cycle to support node 4.x |
I get the same error on Windows I just wound up ignoring it, because things
|
I saw this same error on Windows 7, 8.1, and 10. |
I would suggest installing nvm and running node 0.10.x or 0.12.x with npm 3, this appears to be a compatibility issue with node 4 |
I haven't managed to recreate this on OS X, so this could be Windows only issue (see @david-driscoll comment above). |
Reverted Chai and Mocha version updates. To be included in separate PR.
Reverted Chai and Mocha version updates. To be included in separate PR.
@peterblazejewicz I messed something up in my local repo while trying to revert some changes. I'm going to close this PR and resubmit this as 2 PRs: 1 for the new deps and 1 for the config.js name change. |
When running the
npm test
command, the Mocha test for theaspnet:Config
sub-generator was broken and returned an error message. I tracked this error down and found that it was thrown from the yeoman-environment module'slib/environment.js
file. Because there's a file namedconfig.js
in the root of the project, that file was being detected before the Config sub-generator. Sinceconfig.js
isn't a generator, an error was thrown stating that theaspnet:Config
sub-generator wasn't installed.To fix this problem, I renamed the sub-generator to
aspnet:ConfigJson
. This change does a couple things:aspnet:BowerJson
andaspnet:PackageJson
Since I was fixing a problem with one of the unit tests, I updated the Mocha and Chai dependencies as well.