Skip to content

Consume icon.json files as assets

What does this MR do and why?

Consume icon.json files as assets

Instead of loading icons.json and file_icons/file_icons.json from node_modules/@gitlab/svgs/dist, we can also make them assets and consume them from the asset pipeline. This means that if assets are pre-compiled inside of compile-test-assets, they will be included in the asset bundle and our rspec tests can pass without relying on the node_modules folder.

Contributes to gitlab-org/quality/engineering-productivity/master-broken-incidents#5793 (closed).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

  • bin/spring rspec spec/helpers/icons_helper_spec.rb
Edited by Peter Leitzen

Merge request reports