mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
15 lines
586 B
TypeScript
15 lines
586 B
TypeScript
// @vitest-environment jsdom
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('Vitest jsdom compatibility', () => {
|
|
it('provides isolated browser storage instead of Node process storage', () => {
|
|
if (process.allowedNodeEnvironmentFlags.has('--webstorage')) {
|
|
expect(process.execArgv.filter(argument => argument === '--no-webstorage')).toHaveLength(1)
|
|
}
|
|
localStorage.setItem('dsh-vitest-storage-probe', 'available')
|
|
|
|
expect(localStorage.getItem('dsh-vitest-storage-probe')).toBe('available')
|
|
localStorage.removeItem('dsh-vitest-storage-probe')
|
|
})
|
|
})
|