bitter-apple-86316
01/09/2023, 5:30 AMlively-match-61863
01/09/2023, 5:45 AMbitter-fountain-36713
01/09/2023, 6:17 AM"scripts"
section.bitter-fountain-36713
01/09/2023, 6:18 AMbitter-fountain-36713
01/09/2023, 6:18 AMlively-match-61863
01/09/2023, 9:36 AMstraight-spoon-64191
01/09/2023, 10:35 AMmillions-terabyte-91402
01/09/2023, 11:53 AMmillions-terabyte-91402
01/09/2023, 11:53 AMbitter-fountain-36713
01/09/2023, 2:39 PMcreateAlias
in your tasks?rich-table-95750
01/09/2023, 4:05 PMbitter-apple-86316
01/09/2023, 4:28 PMbitter-apple-86316
01/09/2023, 4:28 PMcool-truck-21040
01/09/2023, 4:40 PMadamant-account-12789
01/09/2023, 4:47 PMagreeable-musician-97823
01/09/2023, 4:48 PMfierce-beach-68131
01/09/2023, 5:02 PM"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": false,
"step_definitions": "cypress/e2e"
}
If I change the path of the stepsDefinition to "cypress/OtherProjectFolder", this time it does not picked the steps in e2e. If I just type "cypress" I get this error. Please check attached screenshot. I'm wondering if there is a way to make stepDefinitions global.refined-spring-39164
01/09/2023, 5:17 PMelegant-nest-19148
01/09/2023, 7:05 PMcypress.config.ts
in /home/foobar
, React component test files are co-located inside /home/foobar/src/**/*.spec.{js,jsx,ts,tsx}
. For instance, there's a component spec in /home/foobar/src/smarta/SmartA.spec.tsx
. Now, running the command $(npm bin)/cypress run -C cypress.config.ts --spec "src/**/*.spec.tsx" --component
inside /home/foobar
simply gives me:
Can't run because no spec files were found.
We searched for specs matching this glob pattern:
> /home/foobar/src/**/*.spec.tsx
What am I doing wrong?best-flower-17510
01/09/2023, 7:35 PMenough-truck-68085
01/09/2023, 7:37 PMspecPattern
defined to for your components? By default it's **/*.cy.{js,jsx,ts,tsx}
https://docs.cypress.io/guides/references/configuration#componentfierce-businessperson-77338
01/10/2023, 12:11 AMgray-kilobyte-89541
01/10/2023, 1:16 AMrefined-spring-39164
01/10/2023, 7:38 AMpowerful-orange-86819
01/10/2023, 8:07 AMicy-caravan-50849
01/10/2023, 9:30 AMbrash-scientist-28014
01/10/2023, 12:16 PMflaky-fountain-4670
01/10/2023, 1:22 PMcy.get('div').should(($div) => { expect($div[0].childElementCount).to.be.lessThan(2) }
https://docs.cypress.io/guides/references/assertions#Should-callbackbrash-scientist-28014
01/10/2023, 1:25 PMflaky-fountain-4670
01/10/2023, 1:35 PM