https://cypress.io logo
Join Discord
Powered by
# help
  • f

    full-jordan-99342

    04/21/2021, 6:23 PM
    hrmm, doesn't seem to be picking it up. (unless i'm doing it wrong!)
  • f

    full-jordan-99342

    04/21/2021, 6:23 PM
    all of the docs talk about setting the env var before running cypress
  • f

    full-jordan-99342

    04/21/2021, 6:28 PM
    (FYI, the ENV definitely works when i add it to my docker-compose)
  • f

    full-jordan-99342

    04/21/2021, 7:19 PM
    not really getting anywhere with this. perhaps i'll put in a github issue for consideration
  • b

    bulky-sundown-74498

    04/21/2021, 7:30 PM
    Thanks @full-jordan-99342, if it is not trivial, it's the best chance you have
  • s

    stocky-dream-36427

    04/21/2021, 8:13 PM
    Sorry! I was in meetings
  • s

    stocky-dream-36427

    04/21/2021, 8:14 PM
    I'm also happy to forward you to our e2e peeps. Bart and I are mostly Component Testing wizards
  • f

    future-gold-77198

    04/21/2021, 9:40 PM
    @User So since I've started migrating my component testing over to 7.0+, I realize that the E2E test runner doesn't work entirely. I get this error before a test even really starts, which I think may arise because we are no longer using the file:preprocessor
  • f

    future-gold-77198

    04/21/2021, 9:42 PM
    This, to be more clear. But I'm not exactly sure how to handle it, or maybe I misunderstand. I remember you saying that webpack-preprocessor dependency shouldn't be required, but could that depend on the Vue app?
  • f

    future-gold-77198

    04/21/2021, 9:45 PM
    My colleague feels like he remembers that he had to use the preprocessor to also get the e2e testing to work for our app. And it seems like that is true when I got back to our old setup and Cypress 6.8. Let me know if this doesn't make sense though.
  • b

    bulky-sundown-74498

    04/21/2021, 9:51 PM
    It does make sense
  • b

    bulky-sundown-74498

    04/21/2021, 9:51 PM
    I am on my mobile right now for a coffee run
  • f

    future-gold-77198

    04/21/2021, 9:53 PM
    ok, thanks. Np. I'm just trying a few more things to see if I can narrow it, but I think its close to the problem already at least.
  • b

    bulky-sundown-74498

    04/21/2021, 10:03 PM
    Back at my station
  • b

    bulky-sundown-74498

    04/21/2021, 10:04 PM
    preprocessors are actually used for more than component testing
  • b

    bulky-sundown-74498

    04/21/2021, 10:04 PM
    they are even not their main usage
  • b

    bulky-sundown-74498

    04/21/2021, 10:04 PM
    CT was kind of exploiting a possibility enabled by preprocessors
  • b

    bulky-sundown-74498

    04/21/2021, 10:05 PM
    https://docs.cypress.io/api/plugins/preprocessors-api
  • b

    bulky-sundown-74498

    04/21/2021, 10:06 PM
    So even if they are not useful anymore for CT they can still be useful for e2e
  • b

    bulky-sundown-74498

    04/21/2021, 10:06 PM
    And to make sure that e2e and CT do not bump into each other
  • b

    bulky-sundown-74498

    04/21/2021, 10:06 PM
    You have 2 ways:
  • b

    bulky-sundown-74498

    04/21/2021, 10:06 PM
    1: create 2 cypress.json files and specify the --configFile or -C
  • b

    bulky-sundown-74498

    04/21/2021, 10:07 PM
    but this could be annoying right
  • b

    bulky-sundown-74498

    04/21/2021, 10:07 PM
    2: use the overrides within cypress.json
  • f

    future-gold-77198

    04/21/2021, 10:09 PM
    Ok, does that mean I can add another 'on' call and add the previous arguments we had for that? In here:
  • b

    bulky-sundown-74498

    04/21/2021, 10:09 PM
    I am looking for the documentation for the overrides
  • b

    bulky-sundown-74498

    04/21/2021, 10:10 PM
    it does mean you could add another "on" call
  • b

    bulky-sundown-74498

    04/21/2021, 10:10 PM
    but I would do this another way
  • f

    future-gold-77198

    04/21/2021, 10:10 PM
    Ok, I'm really not good at any of this stuff, so I might need more help =/
  • b

    bulky-sundown-74498

    04/21/2021, 10:11 PM
    I would use the override to tell cypress that in component testing, it should use this plugins file
12345...252Latest