feat(ivy): ngcc - implement CommonJsDependencyHost (#30200)
PR Close #30200
This commit is contained in:

committed by
Jason Aden

parent
620cd5c148
commit
1bdec3ed6a
@ -7,7 +7,7 @@
|
||||
*/
|
||||
import * as ts from 'typescript';
|
||||
|
||||
import {AbsoluteFsPath} from '../../../src/ngtsc/path';
|
||||
import {AbsoluteFsPath, PathSegment} from '../../../src/ngtsc/path';
|
||||
import {ModuleResolver} from '../../src/dependencies/module_resolver';
|
||||
import {UmdDependencyHost} from '../../src/dependencies/umd_dependency_host';
|
||||
import {MockFileSystem} from '../helpers/mock_file_system';
|
||||
@ -55,7 +55,7 @@ describe('UmdDependencyHost', () => {
|
||||
expect(dependencies.size).toBe(1);
|
||||
expect(dependencies.has(_('/node_modules/lib_1'))).toBe(true);
|
||||
expect(missing.size).toBe(1);
|
||||
expect(missing.has('missing')).toBe(true);
|
||||
expect(missing.has(PathSegment.fromFsPath('missing'))).toBe(true);
|
||||
expect(deepImports.size).toBe(0);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user