I am trying to execute the built in until test provided in the metacoin example. I installed Mocha into my project.
I then execute this command: npm test
from my console.
I am getting the following error:
C:\Dev\Blockchain\TruffleDemo\test\metacoin.js:1
(function (exports, require, module, __filename, __dirname) { var MetaCoin = artifacts.require("./MetaCoin.sol");
^
ReferenceError: artifacts is not defined
Any ideas on what I might be missing? Thank you for the assistance!
truffle test
instead ofnpm test