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

Using this with flow #72

Open
simlu opened this issue Mar 30, 2018 · 3 comments
Open

Using this with flow #72

simlu opened this issue Mar 30, 2018 · 3 comments

Comments

@simlu
Copy link

simlu commented Mar 30, 2018

I've tried to configure this to run with flow and somehow it doesn't work.

Anyone had success with this? I'm basically following the instructions for Running ES2015+ tests with ES2015+ sources (through Babel-CLI), but using flow instead. It should work?

@simlu
Copy link
Author

simlu commented Mar 30, 2018

Basic Steps:
installing

    "babel-cli": "6.26.0",
    "babel-preset-flow": "6.23.0",
    "babel-register": "6.26.0",
    "istanbul": "1.0.0-alpha.2",

Adding options
nodeExec: require.resolve('.bin/babel-node'),
and
mochaOptions: ['--require', 'babel-register', ...

and .babelrc

{
  "presets": ["flow"]
}

Somehow the coverage doesn't get picked up correctly It seems.

@pocesar
Copy link
Owner

pocesar commented Mar 30, 2018

hello @simlu, from a ease-of-use perspective, I'd recommend against using this grunt plugin in new projects and using something more up-to-date. for example, a combination of ava and nyc (or even nyc and mocha) is as simple as nyc ava or nyc mocha

@simlu
Copy link
Author

simlu commented Mar 30, 2018

@pocesar That's what I'm doing now. Maybe also time to abandon grunt all together.... Thanks for the reply!

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

No branches or pull requests

2 participants