Rocky_Mountain_Vending/.pnpm-store/v10/files/d3/0310ef2b17f6a953c9bd4f91d246ff000334a56e7591d016d9264491fb57158212e0ac670b2b4bf7aed721e6ae7423c9844439f7201ee705045e527794a2e8
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

33 lines
784 B
Text

import { fileURLToPath } from 'url'
import { join } from 'path'
import { strictEqual } from 'assert'
import Hook from '../../index.js'
const toWrap = join(fileURLToPath(import.meta.url), '..', '..', 'fixtures', 'foo.mjs')
Hook([toWrap], (exports) => {
const original = exports.foo
exports.foo = function foo () {
return original() + '-first'
}
})
Hook([toWrap], (exports) => {
const original = exports.foo
exports.foo = function foo () {
return original() + '-second'
}
})
Hook([toWrap], (exports) => {
const shouldNotExist = exports.default
exports = function () {
return shouldNotExist()
}
})
const imp = await import('../fixtures/foo.mjs')
strictEqual(imp.foo(), 'foo-first-second')
// This should not throw!
strictEqual(imp.default, undefined)