test(bazel): re-enable ng_package golden testing on ci (#27829)
* Enables the ng_package golden testing on the CI * Fixes the ng_package golden testing for Windows PR Close #27829
This commit is contained in:

committed by
Kara Erickson

parent
8122970f63
commit
ac5f5ed0a6
@ -6,6 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {obsoleteInIvy} from '@angular/private/testing';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import * as shx from 'shelljs';
|
||||
@ -92,6 +93,14 @@ describe('@angular/common ng_package', () => {
|
||||
.toMatch('//# sourceMappingURL=testing.js.map');
|
||||
});
|
||||
|
||||
describe('secondary entry-point', () => {
|
||||
obsoleteInIvy(
|
||||
`now that we don't need metadata files, we don't need these redirects to help resolve paths to them`)
|
||||
.it('should contain a root type definition re-export', () => {
|
||||
expect(shx.cat('./testing.d.ts')).toContain(`export * from './testing/testing';`);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('should have module resolution properties in the package.json file for', () => {
|
||||
// https://github.com/angular/common-builds/blob/master/package.json
|
||||
|
Reference in New Issue
Block a user