import type { VariantPrice } from '@platform-modules/commerce-catalog'
import { expect, it } from 'vitest'
import type { PriceSnapshot } from './types.js'

// COMPILE-TIME mutual-assignability — typecheck fails if catalog VariantPrice drifts from cart PriceSnapshot.
const _a: PriceSnapshot = {} as VariantPrice
const _b: VariantPrice = {} as PriceSnapshot
void _a
void _b

it('PriceSnapshot and VariantPrice stay structurally compatible', () => {
  // The real assertion is the type lines above; this keeps vitest counting the file.
  expect(true).toBe(true)
})
