Skip to content

Commit

Permalink
test: update output regexp in i18n tests to account for change in fil…
Browse files Browse the repository at this point in the history
…e name

This update the regexp to account for the change in #25877 A filename that has the hash included will be `main.[hash]` in Webpack and `main-[hash]` when using esbuild.
  • Loading branch information
alan-agius4 committed Sep 22, 2023
1 parent c5f3ec7 commit 39b1976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { appendToFile } from '../../utils/fs';
import { ng } from '../../utils/process';
import { langTranslations, setupI18nConfig } from './setup';

const OUTPUT_RE = /^(?<name>(?:main|vendor|\d+))\.(?<hash>[a-z0-9]+)\.js$/i;
const OUTPUT_RE = /^(?<name>(?:main|vendor|\d+))(?:\.|-)(?<hash>[a-z0-9]+)\.js$/i;

export default async function () {
// Setup i18n tests and config.
Expand Down

0 comments on commit 39b1976

Please sign in to comment.