2021-01-31から1日間の記事一覧
概要 Jestでマウントせずに、関数のみ実行してテストする方法。 方法 基本形 import 任意の名前1 "@/pages/ファイル名"; describe("任意の名前2", () => { it("任意の名前3", () => { const thisVal = {}; 任意の名前1.options.methods.テスト対象の関数名.c…
概要 Jestでマウントせずに、関数のみ実行してテストする方法。 方法 基本形 import 任意の名前1 "@/pages/ファイル名"; describe("任意の名前2", () => { it("任意の名前3", () => { const thisVal = {}; 任意の名前1.options.methods.テスト対象の関数名.c…