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>