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

update preset-env config to fix async tests #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cowills
Copy link

@cowills cowills commented Oct 8, 2020

https://git.rei.com/projects/FEDCOMP/repos/autocomplete/browse/test/AutocompleteInput.vue.spec.js#68
I noticed while updating the autocomplete component that Vunit 3.0.0 was throwing a RegeneratorRuntime is not defined error on any tests that use async.

The error was not happening on Vunit 2.1.4, and I traced it down to the preset-env being passed into the babel-loader
2.1.4...v3.0.0

Tests work fine again if i either delete preset-env, or add in this config to make it target the currently installed version of node.
https://github.com/rei/rei-cedar/blob/next/babel.config.js#L12-L15 Cedar is also doing the "target current node" strategy.

@cowills cowills changed the title remove preset-env from test loader to fix async tests update preset-env config to fix async tests Oct 9, 2020
@peripateticus
Copy link
Member

Thank you, @cowills!

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

Successfully merging this pull request may close these issues.

2 participants