Modularizing an App for Stitch Fix: Need Help with Spec Folder in Production

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Message originally sent by slack user U716MSFSMKK

Hi friends! I’m an engineer at Stitch Fix working on modularizing one of our apps (I’m on the same team as <@U716FJMV447>). If this is the wrong channel for this question, let me know. I’m seeing with stimpack, that we want each package to contain spec/ at the same level as app. Is the spec folder eager loaded in prod, and if so, do we need to add configuration somewhere so this doesn’t happen?

Hi, the spec paths aren’t loaded in prod. Here is the list of paths loaded by stimpack https://github.com/rubyatscale/stimpack/blob/e0070a0277b1ed4c1d0ad0ea272ae5fdd57c8884/lib/stimpack.rb#L25-L40

Message originally sent by slack user U716FJMV447

Ah, sweet.

Hi Sally! Welcome to the slack! Since @santib already has you covered, I will just mention that for packwerk specific questions we tend to use <#C02TLU33RNW|packwerk>