Closed habuma closed 1 year ago
FWIW, I did see the comment on #7, but that didn't help me. I did try deleting all js.map
files, but that didn't help. Moreover, I don't want to delete *.js
because that would delete my skill fulfillment code.
Hi @habuma have you resolved this issue. if yes then can you please describe how did you resolve it.
It has been resolved, although I honestly don't know what I did to resolve it. Will close this issue and reopen it if I encounter the problem again.
Description
Whenever I run a spec, I get an error saying that
mocha_1.it is not a function
. I can run mocha against a simpler spec that doesn't use ask-sdk-test with no problems. But as soon as I start using ask-sdk-test in a spec, it fails.This could very well be something I'm doing wrong, but I've tried a variety of things with no luck and just need a little help to move forward.
Steps to Reproduce
npm i ask-sdk-test
mocha -r ts-node/register tests/skill.spec.ts
.Expected behavior: [What you expected to happen]
The test should either pass or fail, but not fail to run with an error and stack trace.
Actual behavior: [What actually happened]
Received the following error and stack trace:
Environment
NodeJS-Version: [put your NodeJS version here]
v14.15.4
TypeScript-Version: [put your TypeScript version here]
4.1.3
OS: [put your operating system here]
MacOS 11.1 (Big Sur) on M1 machine.