test: move TimeAgoComponentPreview into Primer subfolder
ADD
demo/test/components/previews/primer/time_ago_component_preview.rb
+module Primer
+ class TimeAgoComponentPreview < ViewComponent::Preview
+ def default
+ render(Primer::TimeAgoComponent.new(time: Time.new))
+ end
+
+ def micro
+ render(Primer::TimeAgoComponent.new(time: Time.new, micro: true))
+ end
+ end
+end

DELETE
demo/test/components/previews/time_ago_component_preview.rb
-class TimeAgoComponentPreview < ViewComponent::Preview
- def default
- render(Primer::TimeAgoComponent.new(time: Time.new))
- end
-
- def micro
- render(Primer::TimeAgoComponent.new(time: Time.new, micro: true))
- end
-end

test: move TimeAgoComponentPreview into Primer subfolder