Skip to content

Fix webpack generation on cells specs#12323

Merged
alecslupu merged 1 commit intodevelopfrom
fix/rspec-test_app-cells
Jan 25, 2024
Merged

Fix webpack generation on cells specs#12323
alecslupu merged 1 commit intodevelopfrom
fix/rspec-test_app-cells

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

Allows running a cell spec as the first spec on a newly generated test_app. Without this you'd get a Shackapacker error:

Shakapacker::Manifest::MissingEntryError

For the past hour we've been debugging with @greenwoodt this error 🙃

I think this may be related to some flaky specs that we've seen, so I'd want to backport this to v0.28 at least.

Testing

Without this patch:

bundle exec rake test_app
bin/rspec decidim-comments/spec/cells/decidim/comments/comments_cell_spec.rb

See exceptions related to Shakapacker

With this patch:

bundle exec rake test_app
bin/rspec decidim-comments/spec/cells/decidim/comments/comments_cell_spec.rb

See that it works well

♥️ Thank you!

Allows running a cell spec as the first spec on a newly generated
`test_app`. Without this you'd get a Shackapacker error:

> Shakapacker::Manifest::MissingEntryError
@andreslucena andreslucena added the type: fix PRs that implement a fix for a bug label Jan 24, 2024
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

Flawless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix PRs that implement a fix for a bug

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants