From aec2b78c752adc29d6d283ff12f5ae4b5e7009e4 Mon Sep 17 00:00:00 2001 From: Jonathan Adshead Date: Mon, 18 Sep 2023 11:38:43 -0700 Subject: [PATCH] chore(integration-tests): update spec to look for new message --- .gitignore | 1 + __tests__/integration/one-app.spec.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8d7710c1b..17fb8d15b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ stats.json .dev .sass_cache .webpack-stats* +.esbuild-stats* .build-meta.json .build-cache bundle.integrity.manifest.json diff --git a/__tests__/integration/one-app.spec.js b/__tests__/integration/one-app.spec.js index 9efbabbbb..c007fad92 100644 --- a/__tests__/integration/one-app.spec.js +++ b/__tests__/integration/one-app.spec.js @@ -79,6 +79,7 @@ describe('Tests that require Docker setup', () => { await tearDownTestRunner({ browser }); writeModuleMap(originalModuleMap); }); + test('one-app starts up successfully with a bad module', async () => { const loggedError = await requiredExternalsError; const [, problemModule, problemModuleUrl, workingUrl] = revertErrorMatch.exec(loggedError); @@ -794,7 +795,7 @@ describe('Tests that require Docker setup', () => { }); test('fails to get external `react-intl` for child module as an unsupplied `requiredExternal` - logs failure', async () => { - const requiredExternalsErrorMatch = /Failed to get external react-intl from root module/; + const requiredExternalsErrorMatch = /External 'react-intl' is required by cultured-frankie, but is not provided by the root module/; const requiredExternalsError = searchForNextLogMatch(requiredExternalsErrorMatch); await addModuleToModuleMap({