Code Monkey home page Code Monkey logo

cypress-attest's People

Contributors

joshuamcclure avatar vanderhoop avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vanderhoop

cypress-attest's Issues

error after installing attest

Error: Cannot find module 'attest-reporter'

Require stack:
- D:\Other Stuff\GenesisLab\Repos\VSTSCypressRepo\CypressTestAutomationFramework\node_modules\cypress-attest\tasks.js
- D:\Other Stuff\GenesisLab\Repos\VSTSCypressRepo\CypressTestAutomationFramework\cypress\plugins\index.js
- C:\Users\c.jayasinghe\AppData\Local\Cypress\Cache\4.1.0\Cypress\resources\app\packages\server\lib\plugins\child\run_plugins.js
- C:\Users\c.jayasinghe\AppData\Local\Cypress\Cache\4.1.0\Cypress\resources\app\packages\server\lib\plugins\child\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:717:15)
    at Module._load (internal/modules/cjs/loader.js:622:27)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (D:\Other Stuff\GenesisLab\Repos\VSTSCypressRepo\CypressTestAutomationFramework\node_modules\cypress-attest\tasks.js:2:24)
    at Module._compile (internal/modules/cjs/loader.js:880:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (D:\Other Stuff\GenesisLab\Repos\VSTSCypressRepo\CypressTestAutomationFramework\cypress\plugins\index.js:27:22)

cypress-attest errors out due to dynamic path

Hey @joshuamcclure,
Our repository leverages workspaces, and running tests within our e2e workspace causes the following error with the current master version of cypress-attest:

CypressError: cy.exec('node .///attest.js') failed because the command exited with a non-zero code.
Pass {failOnNonZeroExit: false} to ignore exit code failures.

Information about the failure:
Code: 1

Stderr:
internal/modules/cjs/loader.js:985
  throw err;
  ^

Error: Cannot find module '/Users/travis.vanderhoop/dev/jupiter/cypress_e2e/account_app/attest.js'
    at Function.Module._resolveFilename (inte...

We tracked the issue down to this line, and were able to get the test suite to blend by replacing node ./${__dirname}/attest.js with node [ABSOLUTE_PATH_TO_ATTEST.JS], but that was just a hack to help us evaluate the enterprise tooling.

While we could execute the e2e tests from our project root rather than from the dedicated workspace (we have a large monorepo), this would be a change to our entire repository to accommodate this issue.

Error: Cannot find module '@deque/attest-reporter'

Getting this error while running cypress run.

` Error: Cannot find module '@deque/attest-reporter'
Require stack:

  • C:\MyFolder\Project\workspace\Research\Accessibilty-testing\Cypress-axe-poc\node_modules\cypress-attest\tasks.js
  • C:\MyFolder\Project\workspace\Research\Accessibilty-testing\Cypress-axe-poc\cypress\plugins\index.js
  • C:\Users\singhabhas\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\lib\plugins\child\run_plugins.js
  • C:\Users\singhabhas\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\lib\plugins\child\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
    at Module._load (internal/modules/cjs/loader.js:691:27)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (C:\MyFolder\Project\workspace\Research\Accessibilty-testing\Cypress-axe-poc\node_modules\cypress-attest\tasks.js:2:24)
    at Module._compile (internal/modules/cjs/loader.js:968:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (C:\MyFolder\Project\workspace\Research\Accessibilty-testing\Cypress-axe-poc\cypress\plugins\index.js:1:22)
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

Please look into this and help me to get it resolved.

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.