Skip to content

Commit

Permalink
test(@angular/cli): remove Safari 15 test
Browse files Browse the repository at this point in the history
Safari v15 is longer included in the default browserlist configuration of CLI apps.

(cherry picked from commit 59a4b00)
  • Loading branch information
alan-agius4 committed Sep 29, 2023
1 parent 9333581 commit 0201061
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/legacy-cli/e2e/tests/misc/safari-15-class-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ export default async function () {
// - static #_ = this.ecmp = bla
const staticIndicatorRegex = /static\s+(\{|#[_\d]+\s+=)/;

await ng('build', '--configuration=development');
await expectFileToExist('dist/test-project/main.js');
const mainContent = await readFile('dist/test-project/main.js');
// TODO: This default cause can be removed in the future when Safari v15
// is longer included in the default browserlist configuration of CLI apps.
assert.doesNotMatch(mainContent, staticIndicatorRegex, unexpectedStaticFieldErrorMessage);

await writeFile('.browserslistrc', 'last 1 chrome version');
await ng('build', '--configuration=development');
await expectFileToExist('dist/test-project/main.js');
Expand Down

0 comments on commit 0201061

Please sign in to comment.