You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn run v1.13.0
$ vue-cli-service test:unit
FAIL tests/unit/example.spec.js
✕ App should work (23ms)
● App should work
expect(received).toMatch(expected)
Expected value to match:
"Welcome to Your Vue.js App"
Received:
"Home |
About"
4 | test('App should work', () => {
5 | const wrapper = shallowMount(App)
> 6 | expect(wrapper.text()).toMatch(`Welcome to Your Vue.js App`)
| ^
7 | })
8 |
at Object.toMatch (tests/unit/example.spec.js:6:26)
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Anonymous>
<Root>
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Anonymous>
<Root>
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Anonymous>
<Root>
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 1.443s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Version
3.4.1
Reproduction link
https://gist.github.com/christophsturm/e54d64e18074206c1806dd375888e29b
Environment info
Steps to reproduce
just run the code in the gist.
What is expected?
the task should work
What is actually happening?
yarn run v1.13.0
$ vue-cli-service test:unit
FAIL tests/unit/example.spec.js
✕ App should work (23ms)
● App should work
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 1.443s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: