This reverts commit f90c7a9df0
due to breakages in G3.
PR Close #32089
This commit is contained in:
@ -2283,28 +2283,4 @@ describe('ngc transformer command-line', () => {
|
||||
let exitCode = main(['-p', path.join(basePath, 'tsconfig.json')], errorSpy);
|
||||
expect(exitCode).toEqual(0);
|
||||
});
|
||||
|
||||
describe('base directives', () => {
|
||||
it('should allow directives with no selector that are not in NgModules', () => {
|
||||
// first only generate .d.ts / .js / .metadata.json files
|
||||
writeConfig(`{
|
||||
"extends": "./tsconfig-base.json",
|
||||
"files": ["main.ts"]
|
||||
}`);
|
||||
write('main.ts', `
|
||||
import {Directive} from '@angular/core';
|
||||
|
||||
@Directive({})
|
||||
export class BaseDir {}
|
||||
|
||||
@Directive({})
|
||||
export abstract class AbstractBaseDir {}
|
||||
|
||||
@Directive()
|
||||
export abstract class EmptyDir {}
|
||||
`);
|
||||
let exitCode = main(['-p', path.join(basePath, 'tsconfig.json')], errorSpy);
|
||||
expect(exitCode).toEqual(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user