Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

537 B
Raw Blame
import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    globals: true,
    // Node, not jsdom: what is worth unit-testing here is the logic between
    // your UI and the API — query keys, payload mapping, permission
    // predicates. Rendering a component to assert its markup tests React.
    // Reach for a browser through Playwright instead (`pnpm test:e2e`).
    environment: 'node',
    include: ['src/**/*.{test,spec}.{ts,tsx}'],
    exclude: ['node_modules/**', 'e2e/**', 'dist/**'],
  },
})