https://cypress.io logo
Join Discord
Powered by
# cy10-feedback
  • p

    powerful-orange-86819

    06/02/2022, 11:35 AM
    I did it, i've been testing this and my specs which got renamed to *.cy.js and the tests run fine
  • w

    wonderful-wire-43244

    06/02/2022, 11:50 AM
    I reverted that back to index.js and that worked then all of a sudden
  • w

    wonderful-match-15836

    06/02/2022, 12:24 PM
    I m getting these issues when trying to
  • c

    chilly-wire-18703

    06/02/2022, 12:31 PM
    hey I just tried adding Cypress 10 to my project, went through the setup and it's saying my config (
    cypress.config.ts
    ) is invalid because
    ERR_REQUIRE_ESM
    . My
    package.json
    has
    { type: "module" }
    . Is there something I need to do to tell Cypress I'm using ESM?
  • c

    chilly-wire-18703

    06/02/2022, 12:41 PM
    I feel like I have a pretty typical typescript setup
  • w

    wonderful-match-15836

    06/02/2022, 12:49 PM
    Does this sound like the same issue reported here? https://github.com/cypress-io/cypress/issues/22038
  • c

    chilly-wire-18703

    06/02/2022, 12:49 PM
    it does
  • c

    chilly-wire-18703

    06/02/2022, 12:51 PM
    i'll see if i can add a minimal sample in a comment
  • c

    chilly-wire-18703

    06/02/2022, 12:51 PM
    thanks!
  • g

    gray-easter-54566

    06/02/2022, 2:00 PM
    Hello
  • f

    faint-fountain-74551

    06/02/2022, 3:37 PM
    this was probably mentioned before but just in case not: it seems that updating the baseUrl in the config won't take effect until restarting cypress
  • g

    gray-kilobyte-89541

    06/02/2022, 4:01 PM
    noticed that too
  • c

    colossal-car-14055

    06/02/2022, 6:04 PM
    Hey All, I was able to resolve the issues with our component test migration and wanted to share the root cause and solution. The issue was for next.js component tests using a standard webpack. When starting the component tests they would hang with the message "Cannot GET /__cypress/src/index.html" and in the terminal had a few errors for "Module not found". The cause of this was that the support/components.ts included an import for the commands.ts. However, within the ./commands.ts we were importing Percy and a few other packages. This caused webpack to fail compile due to not finding the modules for those imports. Simple solution was to remove the import of commands form component.ts and as a BP I plan to move the imports for Percy and other packages specific to our e2e tests into the support/e2e.ts
  • a

    astonishing-city-18705

    06/02/2022, 6:25 PM
    Can you create a GitHub issue for this? https://github.com/cypress-io/cypress/issues/new
  • n

    narrow-lamp-40218

    06/02/2022, 6:27 PM
    Thanks for pointing that out! I've put in a fix here: https://github.com/cypress-io/cypress-documentation/pull/4545
  • n

    narrow-lamp-40218

    06/02/2022, 6:29 PM
    Can you file an issue in the repo for this? https://github.com/cypress-io/cypress-docker-images/issues/new
  • a

    able-family-92006

    06/02/2022, 7:14 PM
    In GitHub actions, Cypress trying to use old format config file. I have
    cypress.config.ts
    and there is no
    cypress.json
    in a codebase. https://github.com/laststance/nsx/runs/6714339952?check_suite_focus=true#step:6:129
    w
    • 2
    • 3
  • m

    mysterious-sandwich-43667

    06/02/2022, 7:20 PM
    Can I change cypress 10 back to a light color scheme? The contrast between my light pages on the right & the black left is a little blinding
  • a

    astonishing-city-18705

    06/02/2022, 8:58 PM
    Not currently. Someone else opened an issue around wanting a light mode if you want to add any comments there: https://github.com/cypress-io/cypress/issues/22035
  • f

    full-ram-6858

    06/02/2022, 11:07 PM
    Does cypress mock process now? I'm seeing issues where env variables are trying to be read (in third party libraries) because process is defined
    • 1
    • 3
  • f

    full-ram-6858

    06/02/2022, 11:08 PM
    Trying to figure out if it's something specific to my setup ๐Ÿค”
  • f

    full-ram-6858

    06/03/2022, 12:20 AM
    Or maybe it always has but env isnโ€™t being mocked?
  • c

    chilly-wire-18703

    06/03/2022, 1:07 AM
    with the release of 10.0.2 to address this issue:
    Copy code
    Error [ERR_REQUIRE_ESM]: require() of ES Module cypress.config.js
    https://github.com/cypress-io/cypress/issues/22038#issuecomment-1145433804 I am now having this issue:
    Copy code
    TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for cypress.config.ts
    https://github.com/cypress-io/cypress/issues/21997#issue-1256410391 just fyi because both got closed and locked but there may be more that needs fixing
  • c

    chilly-wire-18703

    06/03/2022, 2:13 AM
    issue filed: https://github.com/cypress-io/cypress-docker-images/issues/673
  • m

    mysterious-sandwich-43667

    06/03/2022, 2:19 AM
    The 3 (or you could even say 4) pane setup shrinks the browser too much. Like way too much on a laptop. Can't find a way around it.
    w
    • 2
    • 4
  • f

    full-ram-6858

    06/03/2022, 12:00 PM
    Cypress mocking process
  • c

    chilly-wire-18703

    06/03/2022, 12:45 PM
    are there some tags that i should put on this?
  • a

    aloof-balloon-7570

    06/03/2022, 1:00 PM
    Hello All, I Have updated my cypress to 10.0.2 but its not working Would you please someone can help with it. Thanks
  • e

    echoing-painting-40909

    06/03/2022, 1:03 PM
    as explained in another channel, please provide full explanation:
    it's not working
    is far from being an explanation. What happened? What did you do to make it occur? What's the current behavior? What's your expectation?
  • w

    wonderful-match-15836

    06/03/2022, 1:09 PM
    The 3 or you could even say 4 pane setup
12345...18Latest