Am using jest and am getting errors when importing a component
import ContactForm from "../components/Contact/ContactForm.vue";
import { mount } from '@vue/test-utils'
describe("Contact Form", () => {
});
But now am getting an error SyntaxError: Unexpected token < at the import ContactForm
what do i need to add to have imports work
This is what is in my contact form
<template>
my form is here
</template>
<script>
export default{
data:()=>({
contact_form:{
first_name:'',
last_name:'',
email:'',
message:'',
}
}),
methods:{
ContactUs(){
//stuff
}
}
}
</script>
ContactForm.vue
?) - user2864740import
normally reads JavaScript. Perhaps 'ContactForm.vue' does not contain valid JavaScript, and is resulting in this SyntaxError? - user2864740</template
is not correctly closed. - user2864740