対象 æ¥åã¬ãã«ã§ãµã¼ãã¼ãµã¤ãã§Jestãæ¸ãããã¨ã¯ãªãããã©ãæ°ããã¸ã§ã¯ãã§ã¯æ¸ããã¨ã«ãªã£ãã¿ãããªæ¹ãæ³å®ãã¦è¨è¿°ãã¦ãã¾ãã Jestã«ã¤ãã¦ã¯ä¸ã ãã¹ããã©ã¯ãã£ã¹ãéã¾ãã«ããã®ã§ãçµé¨çã«ããæ¸ãã¨ããããã«ãã»ãæ©ããã»ãæ£ç¢ºã«ãæ¸ãããã¨ããTipsãéãã¦ã¿ã¾ãããããããããããã°ãèªã¿ãã ããã åæ TypeScript Node.js Jest DBã¢ã¯ã»ã¹ããã®ç¶æ ãæ³å®ãã¦ãã¾ã 1. itæå ã§ã¯ãå¿ ã1åã¯ãexpectãã¤ãã£ã¦æ¤è¨¼ããã Jestã®PRãã¬ãã¥ã¼ãã¦ãã¨ãã¾ã«è¦åããã®ã§ãããexpectã使ã£ã¦ãªãã±ã¼ã¹ãããã¾ãã // NG it('userãæ£å¸¸ã«ãä½æã§ãããã¨', async() => { await createUser({ name: 'Mike' }); }); // OK it('pdfãæ£å¸¸ã«åé¤ã§ãããã¨
{{#tags}}- {{label}}
{{/tags}}