hunk.code_window:     "strict": false
     },
     "include": [".", "./jest-setup.ts"], 
     "exclude": ["./type"]
   }
hunk.labels: keep keep replace keep keep
hunk.after_edit:   "include": [".", "./jest-setup.ts"],
  
hunk.file_path: test/tsconfig.json
hunk.type: replace
file: import { unstable_serialize } from 'swr'
  import { stableHash } from '../../_internal/utils/hash'
  
  describe('SWR - unstable_serialize', () => {
    it('should serialize arguments correctly', async () => {
      expect(unstable_serialize([])).toBe('')
      expect(unstable_serialize(null)).toBe('')
      expect(unstable_serialize('key')).toBe('key')
      expect(unstable_serialize([1, { foo: 2, bar: 1 }, ['a', 'b', 'c']])).toBe(
        stableHash([1, { foo: 2, bar: 1 }, ['a', 'b', 'c']])
      )
    })
  })
  