Truffle environment + ganache (graphical)
# # # below is the operation process
Compile, error-free migration contract process, log normal!!!!!!
Then execute the truffle test contract error
Specific error # # #
` ` `
TestAdoptionPets
1) "before all the hooks: prepare suite
0 passing (554 ms)
1 failing
1) TestAdoptionPets
"Before all" hook: prepare suite:
TypeError: Error parsing J:/truffle_workplace/AdoptionPets/bare - box/contracts/AdoptionPets. Sol: always destructure property ` body ` of 'undefined' or 'null'.
At getImports (C: \ Users \ 11712 \ AppData \ Roaming \ NPM, node_modules, truffle, build \ webpack: \ packages \ the compile - solidity \ profiler \ getImports js: 5-1)
At findContracts. Then. Then (C: \ Users \ 11712 \ AppData \ Roaming \ NPM, node_modules, truffle, build \ webpack: \ packages, compile - solidity, profiler, index, js: 145:1)
` ` `
# # # # # display error message of
* * always destructure property ` body ` of 'undefined' or 'null' * *
CodePudding user response:
Trouble bosses to help see ~ ~ ~ ~CodePudding user response:
I met this problem, also can not find the answerCodePudding user response:
This problem, for the back of the compilation and deployment as if do not have what influenceCodePudding user response: