spec/frontend eslint error for paths in files not ending in _spec.js
spec/frontend/.eslintrc.yml
refers to our jest.config.js file for import/resolver. But this only includes files that end in spec.js
(see note on import resolver plugin)
So if we use the helpers import alias in a file (e.g mock.js
), then it fails lint, even though the import resolves correctly during tests.
Currently using relative imports to work around it, would be better if we can include
The following discussion from !30211 (merged) should be addressed:
-
@winh started a discussion: (+5 comments) import { TEST_HOST } from 'helpers/test_constants';