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

fix: don't copy tests on build #112

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Conversation

bob-laz
Copy link
Contributor

@bob-laz bob-laz commented Sep 9, 2020

I noticed in working on my other PR that all the tests were being run twice when I executed npm run test, once for src/ folder and once for dist/ folder. I noticed the build command was set to ignore the tests but it was still copying them. An additional parameter and an updated pattern were required to properly ignore the tests. Babel cli docs: https://babeljs.io/docs/en/babel-cli#ignore-files

Alternatively, if we want the tests in /dist, could we configure jest to ignore /dist?

@azz azz merged commit e500e3c into prettier:master Sep 10, 2020
@azz
Copy link
Member

azz commented Sep 10, 2020

Thanks!

@azz
Copy link
Member

azz commented Sep 10, 2020

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 this pull request may close these issues.

None yet

2 participants