> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# resetInstance

> Reset the global SkillRegistry singleton (test helper).

[ref-getinstance]: /docs/server-sdks/reference/typescript/agents/skill-registry/get-instance

Static helper that clears the process-wide `SkillRegistry` singleton. The next
call to [`getInstance()`][ref-getinstance] constructs a fresh registry with
no registered skills, cleared search paths, and no locked names.

<Warning>
  Intended for use in test suites that need a clean registry per test case.
  Calling this in production is almost always a bug -- every previously
  registered skill is forgotten, and any code still holding the old instance
  reference will diverge from the new one.
</Warning>

## **Returns**

`void`

## **Example**

```typescript {10}
import { SkillRegistry } from '@signalwire/sdk';

describe('MySkill', () => {
  beforeEach(() => {
    SkillRegistry.resetInstance();
    const registry = SkillRegistry.getInstance();
    registry.register(MySkill);
  });

  afterAll(() => {
    SkillRegistry.resetInstance();
  });

  it('registers correctly', () => {
    expect(SkillRegistry.getInstance().has('my-skill')).toBe(true);
  });
});
```