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

UI shows *.hot-update.js files in list of tests #159

Closed
reintroducing opened this issue Jun 10, 2016 · 3 comments
Closed

UI shows *.hot-update.js files in list of tests #159

reintroducing opened this issue Jun 10, 2016 · 3 comments
Assignees
Labels
type: feature New feature that does not currently exist
Milestone

Comments

@reintroducing
Copy link

I have a relatively specific use case for my Cypress setup but I'll try to explain it as best I can. I'm using webpack to bundle individual tests and the bundles for these tests spit out into the /integration directory. My Cypress test renders a React component into the DOM of an index file and I run my tests on that component from there. In webpack I have hot module reloading set up so I can effectively edit my component and it reloads in the Chrome window, edit the test to re-run it, and everything is gravy. The only issue is that webpack outputs these *.hot-update.js files into the same directory as your bundle lives, so now my file structure looks like this: https://www.dropbox.com/s/cvkd8yhr659039r/Screenshot%202016-06-10%2011.54.33.png?dl=0

It would be nice to be able to ignore these as a glob in the config so that they don't show up there and pollute the UI with what aren't actually executable specs.

@reintroducing reintroducing changed the title App shows *.hot-update.js files in list of tests UI shows *.hot-update.js files in list of tests Jun 10, 2016
@jennifer-shehane jennifer-shehane added the type: feature New feature that does not currently exist label Jun 10, 2016
@brian-mann
Copy link
Member

Okay we will likely ignore these by default since webpack is so common, but we'll additionally add an ignore field which will accept globs.

This will be fixed in either 0.16.3 or 0.17.0 depending on how quickly 0.17.0 gets done.

@brian-mann brian-mann self-assigned this Jun 13, 2016
@reintroducing
Copy link
Author

Sounds great.

@brian-mann brian-mann added this to the 0.16.3 milestone Jun 14, 2016
@brian-mann
Copy link
Member

There is now an ignoreTestFiles option in cypress.json which accepts an array of glob patterns to ignore. By default it will now ignore *.hot-update.js files.

Fixed in 0.16.3.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

3 participants