Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
342 B
Text
16 lines
342 B
Text
import { register } from 'module'
|
|
import Hook from '../../index.js'
|
|
import { strictEqual } from 'assert'
|
|
|
|
register('../../hook.mjs', import.meta.url, { data: { include: ['openai'] } })
|
|
|
|
const hooked = []
|
|
|
|
Hook((exports, name) => {
|
|
hooked.push(name)
|
|
})
|
|
|
|
await import('openai')
|
|
|
|
strictEqual(hooked.length, 1)
|
|
strictEqual(hooked[0], 'openai')
|