mirror of
https://github.com/discourse/discourse.git
synced 2025-04-22 13:29:07 +08:00

This test file fails locally if `tmp/theme-transpiler.js` does not exists. Since the test file stubs the production env, we have to ensure that `DiscourseJsProcessor::Transpiler.build_production_theme_transpiler` is run first to mirror the production environment where the theme transpiler file is built as part of assets precompilation. ### Review notes: Example failure: https://github.com/discourse/discourse/actions/runs/14529161497/job/40766003075 To repro locally, run the following steps: 1. In your Discourse directory, run `rm -rf tmp` 2. `rspec spec/requests/qunit_controller_spec.rb`