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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
import { describe, expect, it } from 'vitest'
import * as sdk from '../src'
// The code lists and money helpers live in @spree/core; clients import them
// from the SDK, so the SDK has to keep offering every one of them.
describe('@spree/core exports', () => {
it.each([
'CountryCode',
'CurrencyCode',
'DimensionUnit',
'LocaleCode',
'WeightUnit',
'compareMoney',
'decimalPlaces',
'formatMoney',
'isDecimalString',
'isZeroMoney',
'multiplyMoney',
'negateMoney',
'subtractMoney',
'sumMoney',
])('offers %s', (name) => {
expect(sdk).toHaveProperty(name)
})
})