We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b3c8bb commit 6930a2fCopy full SHA for 6930a2f
tests/src/core/importType.js
@@ -227,8 +227,13 @@ describe('importType(name)', function () {
227
228
it('`isExternalModule` works with windows directory separator', function() {
229
expect(isExternalModule('foo', {}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
230
+ expect(isExternalModule('foo', {}, '.\\foo')).to.equal(false)
231
+
232
expect(isExternalModule('foo', {
233
'import/external-module-folders': ['E:\\path\\to\\node_modules'],
234
}, 'E:\\path\\to\\node_modules\\foo')).to.equal(true)
235
+ expect(isExternalModule('foo', {
236
+ 'import/external-module-folders': ['E:\\path\\to\\node_modules'],
237
+ }, '.\\foo')).to.equal(false)
238
})
239
0 commit comments