Skip to content

Type issue with Cypress and Black Box tests #15

@Spacesai1or

Description

@Spacesai1or
yarn test:e2e:electron
yarn run v1.22.19
warning ../../../../../package.json: No license field
$ npx cypress run --headless --browser electron

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        12.3.0                                                                         │
  │ Browser:        Electron 106 (headless)                                                        │
  │ Node Version:   v18.12.1 (/.nvm/versions/node/v18.12.1/bin/node)                     │
  │ Specs:          1 found (chainlink_plugin.test.ts)                                             │
  │ Searched:       test/e2e/**/**/*.test.ts                                                       │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  chainlink_plugin.test.ts                                                        (1 of 1)

Oops...we found an error preparing this test file:

  > test/e2e/chainlink_plugin.test.ts

The error was:

Error: Webpack Compilation Error
[tsl] ERROR in web3.js-chainlink-plugin/test/black_box/test/chainlink_plugin.test.ts(5,52)
      TS2307: Cannot find module '@chainsafe/web3.js-chainlink-plugin' or its corresponding type declarations.

I've tried excluding the black_box directory in both the root and Cypress' webpack.config.js, but the only thing I found to prevent this error is to use // @ts-expect-error TS2307

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions