Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"eslint": "10.6.0",
"espree": "11.2.0",
"jiti": "^2.7.0",
"lucide-static": "1.83.0",
"lucide-static": "1.85.0",
"playwright-core": "1.65.1",
"postcss": "8.5.34",
"prettier": "3.8.1",
Expand Down Expand Up @@ -50,6 +50,7 @@
"packageManager": "pnpm@10.28.0",
"pnpm": {
"overrides": {
"cross-spawn@>=7.0.0 <7.1.0": "^7.1.0",
"fast-uri@<3.1.9": "^3.1.9",
"minimatch@>=7 <11.0.1": "^11.0.1"
}
Expand Down
27 changes: 14 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions spec/lib/discourse_member_subdomains/ai_reviewer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,21 @@
let(:fake_model) { Object.new }
let(:fake_proxy) { instance_double("DiscourseAi::Completions::Llm") }

# Discourse's Helpers#stub_const shadows RSpec's 2-arg stub_const.
def rspec_stub_const(name, value)
RSpec::Mocks::ExampleMethods.instance_method(:stub_const).bind_call(self, name, value)
end

before do
stub_const("LlmModel", Class.new)
stub_const(
rspec_stub_const("LlmModel", Class.new)
rspec_stub_const(
"DiscourseAi::Completions::Prompt",
Class.new do
def initialize(*)
end
end,
)
stub_const(
rspec_stub_const(
"DiscourseAi::Completions::Llm",
Class.new do
def self.proxy(*)
Expand Down
2 changes: 1 addition & 1 deletion themes/jtech/assets/icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading