import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'

describe('grid provider policy', () => {
  it('uses AG Grid Community as the default direct grid implementation', () => {
    const packageJson = readFileSync('package.json', 'utf8')
    const source = readFileSync('src/shared/ui/components/KsDataGrid.vue', 'utf8')

    expect(packageJson).toContain('"ag-grid-community"')
    expect(packageJson).not.toContain('ag-grid-enterprise')
    expect(source).toContain("from 'ag-grid-community'")
    expect(source).toContain('ClientSideRowModelModule')
  })
})
