You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bundled meta/3rd/luassert definitions accept what luassert 1.9 accepts, so --check over a busted suite reports nothing for valid calls.
Actual Behaviour
lua-language-server 3.19.2, with workspace.library set to ${3rd}/busted/library and ${3rd}/luassert/library:
No failure message on single-value assertions.internal.True, False, Nil, truthy, falsy, the type predicates and every alias bound to them (is_nil, is_not_nil, is_true, is_truthy, …) take one parameter, so assert.is_nil(x, "why") reports redundant-parameter. luassert takes a message after the value.
No calls on a spy.luassert.spy declares no calls, so for _, call in ipairs(s.calls) do ... call.vals[1] ... end reports undefined-field.
Missing aliases.assert.equals(a, b) and assert.has_no.errors(fn) report undefined-field; luassert registers both.
stub declared twice.stub.lua declares local stub = {} as luassert.stub, then function stub(object, key, ...), so require("luassert.stub").new(...) reports undefined-field for new.
Related to #3176: in this setup assert does type as luassert, but only while runtime.path keeps its default ?.lua and ?/init.lua; replacing them leaves the busted library's require("luassert") unresolved and assert falls back to the builtin function.
Activity