You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
When running tests programmatically using the code here, the following error is thrown:
TypeError:` createInTestDebugFunction is not a function
at Object.<anonymous> (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:295:1)
at Generator.next (<anonymous>)
at /xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:31:1
at new Promise (<anonymous>)
at **webpack_modules**.583725.\_\_awaiter (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:27:1)
at Object.setJSTestGlobals (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:265:1)
at Object.<anonymous> (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:157:1)
at Generator.next (<anonymous>)
at fulfilled (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:28:43)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Truffle v5.10.0 (core: 5.10.0)
Node v16.18.1
Contracts compile successfully and tests are run to completion.
Actual Results
The following error is thrown:
TypeError:` createInTestDebugFunction is not a function
at Object.<anonymous> (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:295:1)
at Generator.next (<anonymous>)
at /xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:31:1
at new Promise (<anonymous>)
at **webpack_modules**.583725.\_\_awaiter (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:27:1)
at Object.setJSTestGlobals (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:265:1)
at Object.<anonymous> (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:157:1)
at Generator.next (<anonymous>)
at fulfilled (/xxxx/node_modules/truffle/build/webpack:/packages/test/dist/src/Test.js:28:43)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Truffle v5.10.0 (core: 5.10.0)
Node v16.18.1
Environment
Operating System: Linux
Ethereum client: ganache-core: v2.13.2
Truffle version (truffle version): v5.10.0
node version (node --version): v16.18.1
npm version (npm --version): 8.19.2
The text was updated successfully, but these errors were encountered:
So it looks like we neglected to handle the case in test when a certain function is not passed. I created a PR here that should fix this. Thanks again for reporting this @calebyouki!
Issue
When running tests programmatically using the code here, the following error is thrown:
Steps to Reproduce
Run the solidity commands in https://github.com/sc-forks/solidity-coverage/blob/0.7.22/plugins/truffle.plugin.js using truffle
v5.10.0
.Expected Behavior
Contracts compile successfully and tests are run to completion.
Actual Results
The following error is thrown:
Environment
truffle version
): v5.10.0node --version
): v16.18.1npm --version
): 8.19.2The text was updated successfully, but these errors were encountered: