[TS] Enable noUnusedLocals (#3108)

This commit is contained in:
Chenlei Hu
2025-03-17 16:20:56 -04:00
committed by GitHub
parent 9e9459815d
commit 7e66e99c3a
28 changed files with 27 additions and 248 deletions

View File

@@ -75,8 +75,6 @@ async function getResolvedValue(hook: ReturnType<typeof useRemoteWidget>) {
}
describe('useRemoteWidget', () => {
let mockConfig: RemoteWidgetConfig
beforeEach(() => {
vi.clearAllMocks()
// Reset mocks
@@ -85,8 +83,6 @@ describe('useRemoteWidget', () => {
vi.spyOn(Map.prototype, 'get').mockClear()
vi.spyOn(Map.prototype, 'set').mockClear()
vi.spyOn(Map.prototype, 'delete').mockClear()
mockConfig = createMockConfig()
})
afterEach(() => {