Hey folks - I've gotten myself into something I ca...
# component-testing
j
Hey folks - I've gotten myself into something I can't resolve. I'm hoping someone can point me in the right direction for correct Component test setup. I'm trying to write tests here for a Gatsby /React app. There's something wrong with my Babel/webpack config, and even for a simple component, I can't get tests to load:
Copy code
ERROR in ./cypress/component/components/GetStarted/YourInfoStep/YourInfo.cy.js 6:13
Module parse failed: Unexpected token (6:13)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| describe('<YourInfo>', () => {
|   beforeEach(() => {
>     cy.mount(<YourInfo contentful='a string' />)
|   })
|