mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Port the unit tests from https://github.com/vercel/nft/tree/941be1cb3b9d38fbc99a8a6f07af568a64ed0f12/test/unit
16 lines
342 B
JavaScript
16 lines
342 B
JavaScript
const os = require('os')
|
|
|
|
// also trace the react and react/jsx-runtime
|
|
require('react')
|
|
require('react/jsx-runtime')
|
|
|
|
import('@mdx-js/node-loader')
|
|
|
|
import('./mdx.js')
|
|
|
|
const { existsSync } = eval('require')('fs')
|
|
|
|
if (__dirname.startsWith(os.tmpdir()) && existsSync('./snowfall.jsx')) {
|
|
throw new Error('snowfall.jsx should not exist')
|
|
}
|