import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect test cases: Why `resolve('../files/foo', testContext)` should resolve `utils.testFilePath('./bar.jsx')`?

JounQin opened this issue · comments

expect(resolve(
'../files/foo',
{ ...testContext, getFilename() { return utils.getFilename('foo.js'); } },
)).to.equal(utils.testFilePath('./bar.jsx'));

Why resolve('../files/foo', testContext) should resolve utils.testFilePath('./bar.jsx')?

I can't understand this test case?

OK, there is a custom resolver.