From 6d3d9ecf6c2323d239357df2318ea74aee8d1080 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 31 Mar 2020 14:40:40 +1100 Subject: [PATCH] DEV: adjust rake autospec to work with renamed es6 files We no longer use es6 files, update autospec --- lib/autospec/qunit_runner.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/autospec/qunit_runner.rb b/lib/autospec/qunit_runner.rb index 37bc6d76e03..579e6834cea 100644 --- a/lib/autospec/qunit_runner.rb +++ b/lib/autospec/qunit_runner.rb @@ -16,9 +16,9 @@ module Autospec end # Discourse specific - watch(%r{^app/assets/javascripts/discourse/(.+)\.js.es6$}) { |m| "test/javascripts/#{m[1]}-test.js.es6" } - watch(%r{^app/assets/javascripts/admin/(.+)\.js.es6$}) { |m| "test/javascripts/admin/#{m[1]}-test.js.es6" } - watch(%r{^test/javascripts/.+\.js.es6$}) + watch(%r{^app/assets/javascripts/discourse/(.+)\.js$}) { |m| "test/javascripts/#{m[1]}-test.js" } + watch(%r{^app/assets/javascripts/admin/(.+)\.js$}) { |m| "test/javascripts/admin/#{m[1]}-test.js" } + watch(%r{^test/javascripts/.+\.js$}) RELOADERS = Set.new def self.reload(pattern) @@ -33,7 +33,7 @@ module Autospec reload(%r{^test/javascripts/(helpers|mixins)/.+\.js(\.es6)?$}) reload("test/javascripts/test_helper.js") - watch(%r{^plugins/.*/test/.+\.js.es6$}) + watch(%r{^plugins/.*/test/.+\.js(\.es6)?$}) require "socket"