[go: nahoru, domu]

Skip to content

Commit

Permalink
"Fix" the issue with cli_test breaking by manually requiring everythi…
Browse files Browse the repository at this point in the history
…ng the test server needs
  • Loading branch information
searls committed Jun 23, 2024
1 parent 36531a7 commit ae5f6b2
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion test/ruby_lsp_addon_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
require "ruby_lsp/internal"
# All of these requires were needed because `ruby_lsp/internal` mutates rubocop
# in a way that breaks test/standard/cli_test.rb
require "sorbet-runtime"
require "language_server-protocol"
require "ruby_lsp/base_server"
require "ruby_lsp/server"
require "ruby_lsp/requests"
require "ruby_lsp/addon"
require "ruby_lsp/utils"
require "ruby_lsp/store"
require "ruby_lsp/document"
require "ruby_lsp/global_state"
require "core_ext/uri"
require "ruby_indexer/ruby_indexer"
require "ruby_lsp/ruby_document"
require "prism"
require "ruby_lsp/standard/addon"

require_relative "test_helper"

class RubyLspAddonTest < UnitTest
Expand Down

0 comments on commit ae5f6b2

Please sign in to comment.