Skip to content

Commit

Permalink
precompile ignore features directories (cucumber)
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 29, 2024
1 parent 457adc5 commit 266b935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootsnap/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def precompile_command(*sources)
# So we look at the gem root.
# Similarly, gems that include Rails engines generally file Ruby files in `app/`.
# However some gems embed their tests, they're very unlikely to be loaded, so not worth precompiling.
gem_exclude = Regexp.union([exclude, "/spec/", "/test/"].compact)
gem_exclude = Regexp.union([exclude, "/spec/", "/test/", "/features/"].compact)

gem_pattern = %r{^#{Regexp.escape(Bundler.bundle_path.to_s)}/?(?:bundler/)?gems/[^/]+}
gem_paths = $LOAD_PATH.map { |p| p[gem_pattern] || p }.uniq
Expand Down

0 comments on commit 266b935

Please sign in to comment.