Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/unplugin-combine. Unified plugin that combines other plugins into one plugin.
Something went wrong. Try again.
123456789101112131415161718192021222324252627import { expect, test } from 'vitest'import { createCombinePlugin } from '../src'import type { OptionsPlugin } from '../src'
const plugins: OptionsPlugin[] = [{ name: `1` }, { name: `2` }, { name: `3` }]
test('plugin', () => { expect( createCombinePlugin(() => ({ name: 'name', plugins, })).plugins() ).toMatchInlineSnapshot(` [ { "name": "1", }, { "name": "2", }, { "name": "3", }, ] `)})