You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
var request = require('supertest'); describe("hoge",function(){ this.timeout(2000) var agent = request.agent("http://hogeapp.app/") it('send api', function (done) { agent .get('/debug') .set('Accept', 'application/json') .expect(function(res){ res.status.should.equal(404); }).end(function(err,res){ if(err){ throw err; } done(); }); }); })
Full-stack web developer, passionate about solving engineering problems of all kinds with elegant solutions that deliver incredible user experiences. Some thoughts & some code @ ifelse.io. @markthethomas everywhere else. Introduction React has become an increasingly popular and widely-used JavaScript application tool for developing web applications. Popular frameworks like Angular.js, Ember.js, an
å ¬éããã¦ãã React ã³ã³ãã¼ãã³ãã®ãã¹ãã³ã¼ããè¦ã¦ã¿ãã¨ãenzymeã使ã£ã¦ãã¹ããã¦ãããã®ãçµæ§è¦ããã¾ããenzyme ã¯React å ¬å¼ã§ãæ¼ãã¦ããã£ã½ãã®ã§ãç©æ¥µçã«ä½¿ã£ã¦ããããã§ãã Note: Airbnb has released a testing utility called Enzyme, which makes it easy to assert, manipulate, and traverse your React Componentsâ output. If youâre deciding on a unit testing library, itâs worth checking out: http://airbnb.io/enzyme/ æ¥æ¬èªã®ç´¹ä»è¨äºã§ã¯@syossan27ããã®è¨äºãåèã«ãªãã¾ããã React ã®ãã¹ãã Enz
â»ãã®è¨äºã¯ç¤¾å åå¼·ä¼åãã®è³æã®ä¸æ¸ãã§ããæ¸ããªããã®ä¸æ¸ãã§è¦ç´ãã¨æå¾ã®æ¹ã®ææ¸ãã¤ããã®ã§ããã¤ãæ¸ãç´ãã¾ããèªã¿è¾ãæã¯ç³ã訳ãªãã§ãã æ¦è¦ TDD ãã¹ãèªååã¨TDDãæ´ç TDDã¨BDDã®éã Test Framework in javascript QUnit/jasmine/mochaã«ã¤ãã¦ãéããã¡ãªãã¡ãç¥ã mocha åºæ¬çãªæ¸ãæ¹ ã¢ãµã¼ã·ã§ã³ã©ã¤ãã©ãªã®ã¡ãªãã¡ãæ´çãã chai è¨è¿°å½¢å¼ã®éãæ´ç åºæ¬ææ³ sinonjs spy stubs mock TDD Test Driven Development ãã¹ãé§åéçº by ã±ã³ããã㯠ç¹å¾´ xUnitç³»/BDDç³»ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ä½¿ã ãã¹ãããã³ã¼ããå®è£ ãã¹ããã¡ã¼ã¹ã å®è£ ã®å¾ã«ãã¹ãããã®ã§ã¯ãªãããã¹ããå ã«æ¸ãã¦å®è£ ãã ãµã¤ã¯ã« Red(失æ) => Green(éé
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}