Skip to content

Commit 8011846

Browse files
jacekkarczmarczykeddyerburgh
authored andcommitted
refactor: more readable log modified components warning (#731)
1 parent 2872a20 commit 8011846

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-instance/create-instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function createInstance (
6767
) {
6868
if (options.logModifiedComponents) {
6969
warn(
70-
`an extended child component ${c} has been modified ` +
70+
`an extended child component <${c}> has been modified ` +
7171
`to ensure it has the correct instance properties. ` +
7272
`This means it is not possible to find the component ` +
7373
`with a component selector. To find the component, ` +

test/specs/mount.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describeRunIf(process.env.TEST_ENV !== 'node', 'mount', () => {
169169

170170
it('logs if component is extended', () => {
171171
const msg =
172-
`[vue-test-utils]: an extended child component ChildComponent ` +
172+
`[vue-test-utils]: an extended child component <ChildComponent> ` +
173173
`has been modified to ensure it has the correct instance properties. ` +
174174
`This means it is not possible to find the component with a component ` +
175175
`selector. To find the component, you must stub it manually using the ` +

0 commit comments

Comments
 (0)