Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@electron-forge/plugin-webpack fails tests due to deprecated mocha.opts #2013

Closed
3 tasks done
tjquillan opened this issue Oct 27, 2020 · 0 comments · Fixed by #2015
Closed
3 tasks done

@electron-forge/plugin-webpack fails tests due to deprecated mocha.opts #2013

tjquillan opened this issue Oct 27, 2020 · 0 comments · Fixed by #2015
Labels

Comments

@tjquillan
Copy link

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 6.0.0-beta.54
    • master
  • Electron Version:
    • N/A
  • Operating System:
    • Arch Linux x64
  • Last Known Working Electron Forge version::

Expected Behavior

Running bolt test while in electron-forge/packages/plugin/webpack runs its tests

Actual Behavior

Running bolt test while in electron-forge/packages/plugin/webpack fails. This is because the test command for webpack still uses the deprecated --opts ../../../mocha.opts argument (additinally that file was removed in 83bfe97).

To Reproduce

Additional Information

Test Command: mocha --require ts-node/register test/**/*_spec.ts test/**/**/*_spec.ts --opts ../../../mocha.opts

Error:

✖ ERROR: --opts: configuring Mocha via 'mocha.opts' is DEPRECATED and no longer supported.
          Please use a configuration file instead.
error Error
error     at ChildProcess.<anonymous> (/home/iboyperson/.local/share/yarn/global/node_modules/bolt/dist/modern/utils/processes.js:128:16)
error     at ChildProcess.emit (node:events:327:20)
error     at maybeClose (node:internal/child_process:1048:16)
error     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant