publishSheetVersion(client, versionId, validate) takes the core's sheet.check (the package never loads the module itself); anything but a publishable verdict refuses publication before the RPC: invalid_shape, not_publishable (same message as before: first error code), and validator_unavailable when the core cannot run. Tests run on the real Node core; the shape case now asserts the closed kind instead of any throw. The package no longer depends on @faunosteo/domain.
15 lines
443 B
TypeScript
15 lines
443 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
include: ['tests/**/*.test.ts'],
|
|
// The publish gate runs on the real core: refuse a missing or stale module.
|
|
globalSetup: ['../core-wasm/tests/global-setup.ts'],
|
|
// PGlite boots a WASM Postgres per file: give it room on slow CI runners.
|
|
testTimeout: 60_000,
|
|
hookTimeout: 120_000,
|
|
},
|
|
})
|