This repository was archived by the owner on May 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Can't run tests in dev environment #1422
Copy link
Copy link
Open
Description
I wanted to learn from this repo so I cloned it but I couldn't pass from running tests. It seems to work with node 14 ( I couldn't use version 12). I did
yarn
yarn test:finance
and I got this error:
Contract: Finance App
Solidity stack traces only work with Solidity version 0.5.1 or higher.
✓ initialized first accounting period and settings (95ms)
✓ sets the end of time correctly (2870ms)
(node:491653) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1050)
(node:491653) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1) fails on reinitialization
2) "before each" hook for "cannot initialize base app"
2 passing (34s)
2 failing
..../aragon-apps/node_modules/hardhat/internal/hardhat-network/stack-traces/solidity-errors.js:108
return new SolidityCallSite(sourceReference.file.sourceName, sourceReference.contract, sourceReference.function !== undefined
^
TypeError: Cannot read property 'file' of undefined
(Use `node --trace-uncaught ...` to show where the exception was thrown)
npm ERR! code ELIFECYCLE
Any thoughts? What am I doing wrong?
Metadata
Metadata
Assignees
Labels
No labels