Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

…template or render function: { name: 'inline-svg' }

There have been dozens of warnings, while running the unit tests '[Vue warn]: Component is missing template or render function: { name: 'inline-svg' }'

Description

Related Issue

  • Fixes <issue_link>

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

…template or render function: { name: 'inline-svg' }
@AlexAndBear AlexAndBear requested review from JammingBen and Copilot and removed request for Copilot July 12, 2025 20:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes unit test warnings by replacing an empty stub for the vue-inline-svg component with a proper Vue component stub that includes a template. The change eliminates dozens of "[Vue warn]: Component is missing template or render function" warnings that were appearing during unit test execution.

  • Replaces empty stub with a functional Vue component stub for vue-inline-svg
  • Updates Vitest configuration to reference the new stub file

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/unit/stubs/vue-inline-svg.ts Creates a new Vue component stub with proper template for the inline-svg component
tests/unit/config/vitest.config.ts Updates alias configuration to point to the new vue-inline-svg stub instead of empty.ts

@AlexAndBear AlexAndBear self-assigned this Jul 12, 2025
Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@kulmann kulmann merged commit 38d9483 into main Jul 14, 2025
1 check passed
@kulmann kulmann deleted the fix-tests-get-rid-of-inline-svg-warnings branch July 14, 2025 05:49
@openclouders openclouders mentioned this pull request Jul 14, 2025
1 task
@openclouders openclouders mentioned this pull request Jul 21, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants