if (isString(container)) {
const res = document.querySelector(container)
if (__DEV__ && !res) {
- warn(`Failed to mount app: mount target selector returned null.`)
+ warn(
+ `Failed to mount app: mount target selector "${container}" returned null.`
+ )
}
return res
}
createApp(App).mount('#not-exist-id')
expect(
- '[Vue warn]: Failed to mount app: mount target selector returned null.'
+ '[Vue warn]: Failed to mount app: mount target selector "#not-exist-id" returned null.'
).toHaveBeenWarned()
document.querySelector = origin
})