Yes i restarted the pc. Just installed Node version 10.18.0 and now it all runs fine.
Thanks for the help!
@Karolis_Abramavicius, thank you very much!!! I tried to run the test since yesterday and it was not working.
But your solution is perfect.
Works even with Node.js v13.9.0
Thank you!
Here is my file helloworldtest.js ::
I execute the test command (Ganache) and the following is displayed (why?) ::
Hi.
Sure, You can find the answer to this in this post many many times.
I think this topic might have all the possible solutions for this issue posted.
So good luck, my friend!
Yes - I commented out the following line (line #868) in the MOCHA library file runner.js ::
//process.on(âuncaughtExceptionâ, uncaught);
Thanks âŚ
Hi, I cant get past this error. I tried setting network ID to 5777 in the truffle config file but that didint work. Also I realize the Ownable contract failed to deploy after running migrate --reset. Please help
my test file contents below:
const People = artifacts.require(âPeopleâ);
const truffleAssert =require(âtruffle-assertionsâ);
contract(âPeopleâ, async function() {
it(âshouldnât create a person of age ove 150â, async function(){
let instance = await People.deployed();
await truffleAssert.fails(instance.createPerson(âBobâ, 100, 6, {value: web3.utils.toWei(â1â, âetherâ)}));
})
})
Hi Guys,
PLEASE HELP! Havenât been able to test yet as I keep getting this error in CMD. Moving onto the project now so I was hoping to resolve this issue.
Hi.
You can look at the link posted below.
You will find multiple solutions to that issue.
Good luck.
Ivo
Thanks for the quick reply!
anyone can help with my post above?
if anyone comes across this problem I was able to resolve it by updating the truffle-config.js as below: be sure to match the port to rpc server on your ganache
Thank you very much, this worked for meâŚI guessâŚthe more I know, the more I understand that I have no WHATSOEVER IDEA of wtf am I touching in the fucking computerâŚsorry for the french.
@filip When you write a complex contract. Is it better to write the tests as you go? Or would you write all the tests after you have finished writing the contract?
Thanks
Hi.
When I learned python in school, I learned that we should write our tests as we go.
You write the function - then you write the unit test to test it.
Good luck.
Ivo
Had a feeling it was that way. Thanks for confirming
For everyone having poblems with: ERR_INVALID_REPL_INPUT
- Uninstall/Install truffle
npm un -g truffle
npm i -g truffle@nodeLTS
- Remove build directory via console/or remove manually
rm build
- Migrate again to re-create build directory
truffle console
migrate