728x90
ํด๊ฒฐ ๋ฐฉ๋ฒ
/**
* @jest-environment jsdom
*/
import { shallowMount } from "@vue/test-utils";
import ClassDetailModal from "./ClassDetailModal.vue";
jest.mock("@/src/axios/api/class"); ๐ api ์์ฒญ ํจ์ ํ์ผ ์์ฒด๋ฅผ ๋ชฉํนํจ.
test('', async () => {
๋ฐ์ดํฐ ๋ณ๊ฒฝ
await wrapper.vm.$nextTick(); ๐ ๋น๋๊ธฐ
๋ณ๊ฒฝ๋ ๋ฐ์ดํฐ๊ฐ ๋ฐ์๋ UI ํ์ธ
})
์ฐธ๊ณ
728x90
'Vue.js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[vue-test-utils] select html tag ํ ์คํธ ๋ฐฉ๋ฒ (0) | 2022.09.16 |
---|---|
[vue2]jest ๋จ์ํ ์คํธ css ํ์ผ ๋ฌธ๋ฒ ์ค๋ฅ ์๋ฌ ํด๊ฒฐ (0) | 2022.09.08 |
[Vue] ์ ์ญ ํฐํธ ์ค์ (0) | 2022.09.01 |
[Vue] ๋จ์ํ ์คํธ ํ๊ฒฝ ๋ง๋ค๊ธฐ (0) | 2022.08.29 |
[jest] scrollTo()๊ฐ์๋ ์ปดํฌ๋ํธ ํ ์คํธ ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ (0) | 2022.08.11 |
๋๊ธ