Closed jherdman closed 5 years ago
I'm having a bit of trouble running tests locally. I'm seeing these errors:
liquid-fire [hopefully-easy-jquery-fixes] % yarn test
yarn run v1.15.2
$ eslint . && ember test
/Users/james/Projects/liquid-fire/version-specific-1.13/index.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/Users/james/Projects/liquid-fire/version-specific-2.9/index.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
✖ 2 problems (2 errors, 0 warnings)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This doesn't handle the vendor shim. I'm not really familiar with what's going on in there so I've left it alone.
Thanks. I will take a look at also fixing the vendor shim.
Instead of accessing a Component's
this.$()
property, which is deprecated in modern Ember, we manually wrapthis.element
. I've taken care of a cases of jQuery usage that were easy to fix, but most have been left alone to mitigate the chances of a regression.