Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

374 B
Raw Blame
import { describe, it, expect } from 'vitest'
import { config } from 'zod'
import '@/lib/zodCsp'

describe('zodCsp', () => {
  // Without jitless, the first object schema probes `new Function`, which the
  // window CSP (no 'unsafe-eval') refuses and reports as a violation.
  it('turns off the eval-based fast path', () => {
    expect(config().jitless).toBe(true)
  })
})