synpress icon indicating copy to clipboard operation
synpress copied to clipboard

synpress.json not clear to beginner

Open yvesbou opened this issue 3 years ago • 0 comments

Hey I have some questions around the synpress.json configuration. I started to use synpress. I followed this tutorial, which is really great! But it didn't explain everything I needed.

I repeatedly got the following error

Can't run because no spec files were found.

I thought that this part of the synpress.json is important, as testFiles were listed..

"component": {
    "componentFolder": ".",
    "testFiles": "**/*spec.{js,jsx,ts,tsx}"
  },

However, it turned out, that the integrations folder "integrationFolder": "integration", didn't match the default cypress project setup. cypress/integration/..

well fair enough, however it runs every test file inside the integrations folder. How can I restrict that? I tried retricting via the key-value pair of "testFiles". I thought it was the component key inside the synpress.json ...

So to summarise, I don't understand the difference between

"component": {
    "componentFolder": ".",
    "testFiles": "**/*spec.{js,jsx,ts,tsx}"
  },

and

"integrationFolder": "integration",

Screenshot 2022-05-31 at 17 00 25

thank you for your help! :)

yvesbou avatar May 31 '22 15:05 yvesbou