Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

naming a function mount causes the plugin to crash #4

Open
snoozbuster opened this issue Jun 21, 2022 · 0 comments
Open

naming a function mount causes the plugin to crash #4

snoozbuster opened this issue Jun 21, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@snoozbuster
Copy link
Collaborator

consider a locally defined function such as

function mount(...) {
  return ...
}

it('should not crash', () => {
  const wrapper = mount(...);
});

this causes a crash:

at getImportSourceName (./eslint-plugin-vue-test-utils/src/rules/utils.js:92:29)
    at isVtuImport (./eslint-plugin-vue-test-utils/src/rules/utils.js:164:12)
    at CallExpression (./eslint-plugin-vue-test-utils/src/rules/no-deprecated-mount-options.js:153:22)

it should not crash

@snoozbuster snoozbuster added bug Something isn't working good first issue Good for newcomers labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant