ChainSafe / ChainSafe/web3.js-plugin-chainlink

Type issue with Cypress and Black Box tests

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Description

```bash
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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.