prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
Rails log files rotate automatically when they reach approx. 100MB: $ ls -lh log/ -rw-r--r-- 1 user group 55M...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
Coverage reports are rarely useful if you run only small parts of your test suite. Just do not load SimpleCov...
The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...
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...
ChromeDriver 135 started following the W3C spec more closely, which broke testing beforeunload confirmations again. To get working confirmations in...
As it's quite hard to use a screen reader when you have never done so before, I added a...
Currently we often use geordi to run cucumber and rspec tests. Geordi takes care of installing a matching chromedriver for...
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...
The DB schema is the most important source of truth for your application and should be very self-explanatory. If...
tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...
Our projects with parallel_tests and cucumber used to have a patched failure logger as the one from parallel_tests...
Prevent the restart of daemons from Debian package upgrades. Proper written postinstall scripts for Debian packages utilize deb-systemd-invoke...
Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...
For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...
There are several ways to run a single spec. I usually copy the spec file path with the line number...
Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile: double free or corruption (out)
The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...
Bundler allows you to specify the name of the Gemfile you want to bundle with the BUNDLE_GEMFILE environment variable...