defi-wonderland / smock

The Solidity mocking library
MIT License
320 stars 40 forks source link

Missing ehtereumjs-vm dependency #70

Closed b0dhidharma closed 3 years ago

b0dhidharma commented 3 years ago

Describe the bug Direct installation of smock thats not work out of the box. When running my tests an error Error: Cannot find module '@nomiclabs/ethereumjs-vm/dist/exceptions' is thrown. This is fixable by installing that dependency on the project, but its a pretty weird behaviour, honestly.

Reproduction steps

  1. Start a project
  2. Install smock
  3. Try to use it (at least Im using fake)

Expected behavior Work out of the box.

Screenshots Can't show without doxing myself - approach via DM if necessary.

System Specs:

Additional context n/a

smartcontracts commented 3 years ago

Ah okay I see the problem. Will see if I can work out a quick fix.