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>
19 lines
462 B
Text
19 lines
462 B
Text
import assert from 'node:assert/strict'
|
|
import defaultHook, { Hook, addHook } from '../../index.js'
|
|
import { sayHi } from '../fixtures/say-hi.mjs'
|
|
|
|
addHook((url, exported) => {
|
|
if (url.toLowerCase().endsWith('say-hi.mts')) {
|
|
exported.sayHi = () => 'Hooked'
|
|
}
|
|
})
|
|
|
|
new defaultHook((exported: any, name: string, baseDir: string|void) => {
|
|
|
|
});
|
|
|
|
new Hook((exported: any, name: string, baseDir: string|void) => {
|
|
|
|
});
|
|
|
|
assert.equal(sayHi('test'), 'Hooked')
|