Kuis Testing Vue Components — Vue

Kuis materi Testing Vue Components di Vue — uji pemahamanmu dengan pertanyaan pilihan ganda, penjelasan jawaban, dan skor langsung. Main gratis di Hyper Sheets.

Pertanyaan di kuis ini

  1. Library testing resmi Vue untuk mount komponen di unit test adalah apa?
  2. Mount komponen untuk testing:
    import { ___ } from "@vue/test-utils";
    const wrapper = ___(MyComponent);
  3. Trigger klik pada wrapper:
    await wrapper.find("button").___("click");