ã¿ãªãããã¹ãã¯æ¸ãã¦ãã¾ããã. æ¸ãã¦ããªããã°ãµãã ãã«æ»ã. ä¾ãã°é¢æ° add ã«å¯¾ãã¦, 以ä¸ã®ãããªãã¹ãã³ã¼ããããã¨ãã¾ã. describe("add", () => { it("æ£ããè¨ç®ã§ãã", () => { expect(add(1, 2)).toBe(3); }); }); ããããã§ãã? ãããããªãã¨æãã®ã§ããã°ããããä¸ã¯èªã¾ãªãã¦ã大ä¸å¤«ãªãããç解ãã¦ããæ¹ã ã¨æãã¾ã. ç¶ãã¦é¢æ°åãå¤ããã ãã®ãã¡ããã©ãã. describe("sub", () => { it("æ£ããè¨ç®ã§ãã", () => { expect(sub(1, 2)).toBe(3); }); }); ãªãã ãæããã«ééã£ã¦ããæ°ããã¾ã. ãããã®ãã¹ããééãã¦ãã¾ã£ãã¨ãæã ã¯ã©ãããã°ããã®ã§ãããã. èãããããã¿ã¼ã³ã¯ 2 ã¤ããã¾ã. å®è£ ããã¹ããæ£
{{#tags}}- {{label}}
{{/tags}}