Posts

Showing posts from September, 2022

ember-cli-code-coverage mocha showing 0% coverage when there are tests

Image
  I'm using   ember-cli-code-coverage   with   ember-cli-mocha . When I run  COVERAGE=true ember test  I'm getting 0% coverage for statements, functions, and lines. Yet, I have tests that are covering those sections.  Any I missing something in my setup? unit test file: beforeEach ( function ( ) { controller = this . subject (); }); it ( 'sets selectedImage to null' , function ( ) { expect (controller. get ( 'selectedImage' )). to . eql ( null ); }); describe ( 'setCoverageTest' , function ( ) { it ( 'sets selectedImage to true' , function ( ) { expect (controller. get ( 'selectedImage' )). to . eql ( null ); controller. setCoverageTest (); expect (controller. get ( 'selectedImage' )). to . be . true ; }); }); config/coverage.js: module . exports = { excludes: [ '*/templates/**/*' ], useBabelInstrumenter: true }; ember.js code-coverage ember-cli ember-cli-code-coverage Share ...

How do I delete a Git branch locally and remotely?Failed Attempts to Delete a Remote Branch:

How do I delete a Git branch locally and remotely? $ git branch -d remotes/origin/bugfix error: branch ‘remotes/origin/bugfix’ not found. $ git branch -d origin/bugfix error: branch ‘origin/bugfix’ not found. $ git branch -rd origin/bugfix Deleted remote branch origin/bugfix (was 2a14ef7). $ git push Everything up-to-date $ git pull From github.com:gituser/gitproject * [new branch] bugfix -> origin/bugfix Already up-to-date