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
356 B
Text
16 lines
356 B
Text
import { register } from 'module'
|
|
import Hook from '../../index.js'
|
|
import { strictEqual } from 'assert'
|
|
|
|
register('../../hook.mjs', import.meta.url, { data: { exclude: [/openai/] } })
|
|
|
|
const hooked = new Set()
|
|
|
|
Hook((_, name) => {
|
|
hooked.add(name)
|
|
})
|
|
|
|
await import('openai')
|
|
|
|
strictEqual(hooked.has('openai'), false)
|
|
strictEqual(hooked.has('fs'), true)
|