我有以下测试规范。
'use strict';
import ContactForm from '../../../js/components/Contact/ContactForm.vue'
describe('Contact Form', () => {
it('Should have data property', () => {
expect(typeof ContactForm.data).toBe('function')
})
});
但是现在出现错误
{
"message": "An error was thrown in afterAll\nUncaught SyntaxError: Unexpected identifier",
"str": "An error was thrown in afterAll\nUncaught SyntaxError: Unexpected identifier"
}
怎么了?