Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kentcdodds/producthunt

src/smoke-test.ts

14 lines · 603 B · TypeScript
import { runSmokeTest } from './domain.ts'
import type { ProductHuntIntegrationOptions } from './types.ts'

/**
 * Verify Product Hunt auth and return the connected hunter plus one featured post.
 * @returns ok flag, viewer identity, and a featured post sample.
 * @example
 * import smokeTest from 'kody:@kentcdodds/producthunt/smoke-test'
 * const result = await smokeTest()
 * // => { ok: true, viewer: { username: 'kentcdodds' }, featuredPost: { slug: '...' } }
 */
export default async function smokeTestEntrypoint(params: ProductHuntIntegrationOptions = {}) {
	return await runSmokeTest(params)
}