2021-01-06から1日間の記事一覧
testしたいmethods methods: { submit(): void { this.$emit('submit-post', this.body) } } 普通なら expect(wrapper.emitted.submit[0]) とかで指定できる。 でもケバブケースの場合どうやってemitのテストしたらいいの? answer describe('submit', () =>…
testしたいmethods methods: { submit(): void { this.$emit('submit-post', this.body) } } 普通なら expect(wrapper.emitted.submit[0]) とかで指定できる。 でもケバブケースの場合どうやってemitのテストしたらいいの? answer describe('submit', () =>…