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
8 changes: 8 additions & 0 deletions __tests__/custom-annotations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ describe('custom and plugin annotation smoke checks', () => {
expect(tableCopyBlock).toContain('function table.Copy(originalTable, lookupTable) end');
});

test('derma.DefineSkin accepts partial skin tables', () => {
const defineSkin = readCustom('derma.DefineSkin.lua');

expect(defineSkin).toContain(
'---@param skin Partial<SKIN> Table containing skin overrides. Missing values inherit from the Default skin.',
);
});

test('source-backed VGUI lookup and creation overrides expose nil failure paths', () => {
const vguiLua = readOutput('vgui.lua');
const createBlock = vguiLua.match(
Expand Down
2 changes: 1 addition & 1 deletion custom/derma.DefineSkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
---@[call_arg("gmod.derma_skin", "define")]
---@param name string Name of the skin.
---@param description string Description of the skin.
---@param skin SKIN Table containing skin data.
---@param skin Partial<SKIN> Table containing skin overrides. Missing values inherit from the Default skin.
function derma.DefineSkin(name, description, skin) end
Loading