Skip to content

Commit

Permalink
cleanup(angular): fix e2e test case
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Dec 2, 2024
1 parent ce7df08 commit 782600e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/angular/src/projects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ describe('Angular Projects', () => {
}, 1000000);

it('should lint correctly with eslint and handle external HTML files and inline templates', async () => {
// disable the prefer-standalone rule for app1 which is not standalone
let app1EslintConfig = readFile(`${app1}/eslint.config.js`);
app1EslintConfig = app1EslintConfig.replace(
`'@angular-eslint/directive-selector': [`,
`'@angular-eslint/prefer-standalone': 'off',
'@angular-eslint/directive-selector': [`
);
updateFile(`${app1}/eslint.config.js`, app1EslintConfig);

// check apps and lib pass linting for initial generated code
runCLI(`run-many --target lint --projects=${app1},${lib1} --parallel`);

Expand Down

0 comments on commit 782600e

Please sign in to comment.