Leave open library block only before deploy
leave open test block to run tests, but close it before deploy