When RSpec sets out to print any given object to the console, it will never print more than 200 characters...

prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...

makandra dev

Rails log files rotate automatically when they reach approx. 100MB: $ ls -lh log/ -rw-r--r-- 1 user group 55M...

Coverage reports are rarely useful if you run only small parts of your test suite. Just do not load SimpleCov...

RSpec examples can get quite long, especially in feature specs. This makes them hard to read & understand. Also, when executing...

When RSpecs runs the first feature spec, you may see log output like this: Capybara starting Puma... * Version 6.5.0, codename...

ActiveRecord computes table names of model classes, and results are usually just like you'd expect. Adding a prefix for...

Currently we often use geordi to run cucumber and rspec tests. Geordi takes care of installing a matching chromedriver for...

api.rubyonrails.org

In Rails 7.2. the feature ActiveRecord.after_all_transactions_commit was added, for code that may run either inside or outside...

In Rails 7.2 the new default for config.action_dispatch.show_exceptions is rescuable. :rescuable: It will show a Rails error page in...

Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...

When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...

tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...

Say you wrap your index view in a form to apply different filters like pagination or a search query. On...

The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

In Rails, the implicit_order_column (added in Rails 6) is a configuration option that helps you define the default...

For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...

SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...

Method delegation in Rails can help you to keep your code organized and avoid deep call chains (law of demeter...

There are several ways to run a single spec. I usually copy the spec file path with the line number...

The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...