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
Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend that you not install Mocha globally.
Description
Steps to Reproduce
npm init -y
npm i -D mocha @types/mocha polendina ts-loader typescript
Why are you bundling mocha when we've already made a browser bundle available?
It looks like Polendina can let you specify the test runner with --runner, where you can specify mocha. And you don't even have to because it's default
I didn't really know what you mean by "bundling mocha" in this context, but there wasn't a lot of information in my post from which you could conclude I was bundling mocha. I looked for something I had mentioned that I could remove and, when I removed import 'mocha'; from test.spec.ts everything worked. In fact, it worked better than before. I had no idea that mocha did not need to be imported. Thank you!
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Steps to Reproduce
npm init -y
npm i -D mocha @types/mocha polendina ts-loader typescript
mkdir src && echo 'import "mocha";' > src/test.spec.ts
npx tsc --init
echo "module.exports={target:'web',resolve:{modules:['./node_modules'],extensions:['.tsx','.ts','.js']}}" > webpack.test.js
npx polendina --cleanup --timeout 60 src/**/*.spec.ts --webpack-config webpack.test.js
Expected behavior: test run results.
Actual behavior: "Module not found" error
(output from polendina doesn't paste well, this is lightly processed...)
Reproduces how often: 100%
Versions
mocha --version
andnode node_modules/.bin/mocha --version
:bash: mocha: command not found
7.1.2
node --version
:v13.8.0
Additional Information
I'm able to work around the problem temporarily with this diff to
./node_modules/mocha/lib/browser/growl.js
:The text was updated successfully, but these errors were encountered: