Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

fix: remove broken handling of "target": "node" #92

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

AviVahl
Copy link
Contributor

@AviVahl AviVahl commented Mar 23, 2020

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

This flow was never covered by any tests and got broken by mocha itself, as it's no longer bundle-compatible when targeting node.

Closes #89 by now throwing an error about an unsupported target.

Should be noted that test files can always be bundled without mocha-loader. The resulting bundle can later be executed in node using the mocha cli.

Breaking Changes

Replaced bundling errors with a proper "unsupported target" error. Not sure whether it's considered breaking to remove something that doesn't work anyway.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, should we do major release?

@AviVahl
Copy link
Contributor Author

AviVahl commented Mar 24, 2020

Yeah, a major version. Just to be on the safe side...
I'll rebase branch to current master.

this flow was never covered by any tests and got broken by mocha itself, as it's no longer bundle-compatible when targeting node.

closes #89 by now throwing an error about an unsupported target.

Should be noted that test files can always be bundled without mocha-loader. The resulting bundle can later be executed in node using the mocha cli.
@alexander-akait
Copy link
Member

@AviVahl Do we need to implement anything else before releasing the major version?

@AviVahl
Copy link
Contributor Author

AviVahl commented Mar 24, 2020

not really. go ahead. 👍

@alexander-akait alexander-akait merged commit b84eb10 into master Mar 24, 2020
@alexander-akait alexander-akait deleted the remove-target-node-flow branch March 24, 2020 10:59
@alexander-akait
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TS2307: Cannot find module node_modules/mocha-loader/dist/EnhancedMocha.js
2 participants