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
577 B
Text
19 lines
577 B
Text
import * as lib from '../fixtures/duplicate.mjs'
|
|
import { notEqual, strictEqual } from 'assert'
|
|
import Hook from '../../index.js'
|
|
|
|
Hook((exports, name) => {
|
|
if (name.match(/duplicate\.mjs/)) {
|
|
// foo should not be exported because there are duplicate * exports
|
|
strictEqual('foo' in exports, false)
|
|
// default should be exported
|
|
strictEqual(exports.default, 'foo')
|
|
}
|
|
})
|
|
|
|
notEqual(lib, undefined)
|
|
|
|
// foo should not be exported because there are duplicate exports
|
|
strictEqual('foo' in lib, false)
|
|
// default should be exported
|
|
strictEqual(lib.default, 'foo')
|