DEV: Define theme test modules under a /test subdirectory (#13158)

This commit is contained in:
David Taylor
2021-05-26 11:49:51 +01:00
committed by GitHub
parent 283b08d45f
commit ea61bcaf13
2 changed files with 2 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ class Theme < ActiveRecord::Base
SvgSprite.expire_cache
end
BASE_COMPILER_VERSION = 50
BASE_COMPILER_VERSION = 51
def self.compiler_version
get_set_cache "compiler_version" do
dependencies = [

View File

@@ -151,6 +151,7 @@ class ThemeField < ActiveRecord::Base
js_compiler = ThemeJavascriptCompiler.new(theme_id, theme.name)
filename, extension = name.split(".", 2)
filename = "test/#{filename}" if js_tests_field?
begin
case extension
when "js.es6", "js"