async function assertPlugin(info, t) {
  /** @type {{default: Plugin<[unknown]>}} */
  const pluginModule = await import(info.name)
  const plugin = pluginModule.default

  for (const check of info.checks) {
    const name = check.name + ':' + check.configuration

    // type-coverage:ignore-next-line -- `TestContext` not exposed from `node:test`.
    await t.test(name, async function () {
      await assertCheck(plugin, info, check)
    })
  }
}
@param {PluginInfo} info
  Info.
@param {any} t
  Test context.
@returns {Promise<undefined>}
  Nothing.