GithubHelp home page GithubHelp logo

Comments (5)

coleUI avatar coleUI commented on July 27, 2024 1

@blackpintz I had my tsconfig.json in the tests/e2e, but my issue was resolved when I added "supportFolder" and "pluginsFolder" in the synpress.json config file. It did not know where to reference those folders (it looks in the same directory as the config file by default). I had to add values to point them to the respective synpress folders in node_modules.

This should probably be added to the synpress docs since it currently seems as if you can copy/paste the default values into the custom config, which is not the case

from synpress.

coleUI avatar coleUI commented on July 27, 2024

@blackpintz If you want to skip metamask extension installation or metamask setup, you can use SKIP_METAMASK_INSTALL and SKIP_METAMASK_SETUP separately. Both variables accept 1 or true.

That is from the readme. I had to use this and setup metamask with cy.setupMetamask() or else I would get the same error as you.

With that said, I am still getting this error when trying to override the config file.

from synpress.

blackpintz avatar blackpintz commented on July 27, 2024

@coleUI, I just added a tsconfig.json file in the root directory and typescript packages and now the error is gone. Maybe you can also check how you are calling the test file in package.json. Example: "test:synpress:open": "env-cmd -f .env synpress open".

from synpress.

dev2021-ctrl avatar dev2021-ctrl commented on July 27, 2024

@coleUI @blackpintz I am facing the similar issue.I tried adding folders but still getting same error.
Please advise.
My test script is below
''''
describe('Metamask', () => {
context('verifying commands', () => {

it(`Try to connect to website`, () => {
  cy.visit('/');
  cy.contains('Welcome')


});

});
});

''''

from synpress.

blackpintz avatar blackpintz commented on July 27, 2024

@dev2021-ctrl Did you install the typescript packages as well? Maybe you can share more code snippets of your work...

from synpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.