Lines Matching refs:moduleNameIsDirectFileReference
1 import { moduleNameIsDirectFileReference } from '../plugin-resolver';
3 describe(moduleNameIsDirectFileReference, () => {
5 expect(moduleNameIsDirectFileReference('./app')).toBe(true);
6 expect(moduleNameIsDirectFileReference('~/app')).toBe(true);
7 expect(moduleNameIsDirectFileReference('/app')).toBe(true);
8 expect(moduleNameIsDirectFileReference('.')).toBe(true);
11 expect(moduleNameIsDirectFileReference('app')).toBe(false);
12 expect(moduleNameIsDirectFileReference('@expo/app')).toBe(false);
15 expect(moduleNameIsDirectFileReference('app/')).toBe(true);
16 expect(moduleNameIsDirectFileReference('@expo/app/')).toBe(true);
19 expect(moduleNameIsDirectFileReference('app/index.js')).toBe(true);
20 expect(moduleNameIsDirectFileReference('@expo/app/index')).toBe(true);