Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/tc39-throw. Enable support for throw expressions in JavaScript tools
Something went wrong. Try again.
12345678910111213141516171819202122import path from 'node:path'import { rollupBuild, testFixtures } from '@sxzz/test-utils'import UnpluginOxc from 'unplugin-oxc/rollup'import { describe } from 'vitest'import unplugin from '../src/unplugin'
const { dirname } = import.meta
describe('unplugin', async () => { await testFixtures( '*.ts', async (args, id) => { const { snapshot } = await rollupBuild(id, [ unplugin.rollup(), UnpluginOxc(), ]) return snapshot }, { cwd: path.resolve(dirname, 'fixtures'), promise: true }, )})