Skip to content

Commit 39b1976

Browse files
committed
test: update output regexp in i18n tests to account for change in file 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.
1 parent c5f3ec7 commit 39b1976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { appendToFile } from '../../utils/fs';
1111
import { ng } from '../../utils/process';
1212
import { langTranslations, setupI18nConfig } from './setup';
1313

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

1616
export default async function () {
1717
// Setup i18n tests and config.

0 commit comments

Comments
 (0)