At Fotocasa Portal, we are integrating Jest into our tests. One of the problems we encountered was that we couldn't start the demos with studio-dev because it was searching for the path "test/index.test", leading to an error.
This PR solves the problem by detecting if the component has a Jest test and then changing the test alias to later import the correct path.
Description
At Fotocasa Portal, we are integrating Jest into our tests. One of the problems we encountered was that we couldn't start the demos with studio-dev because it was searching for the path "test/index.test", leading to an error.
This PR solves the problem by detecting if the component has a Jest test and then changing the test alias to later import the correct path.
Related Issue
Example
Demo on component with Jest test