-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
Description
Version
3.0.0-beta.15
Reproduction link
https://github.com/smekalin/test_babel_unit_linter
Steps to reproduce
- Write
vue ui
in console - Create new project
- Select npm package
- Manually select features
- Select babel, Linter and Unit testing
- Next step select: ESLint Airbnb config, Lint on save, Mocha Chai
- Click to create project
What is expected?
There are no errors during application creation.
What is actually happening?
⠋ Running completion hooks...error: Unable to resolve path to module '@/components/HelloWorld.vue' (import/no-unresolved) at test/tests/unit/HelloWorld.spec.js:3:24: 1 | import { expect } from 'chai'; 2 | import { shallowMount } from '@vue/test-utils'; > 3 | import HelloWorld from '@/components/HelloWorld.vue'; | ^ 4 | 5 | describe('HelloWorld.vue', () => { 6 | it('renders props.msg when passed', () => { 1 error found.
I investigated it and have found as to reproduce it:
If I select Unit testing and Linter without Babel all is ok. If I select Unit testing, Linter, Babel I get error.
I receive a error, but the application and unit tests works.
I'm using:
- macbook with High Sierra 10.13.5
- npm 5.6.0
ej52, thejprice and shamrt