Skip to content

Commit

Permalink
Add dependency that sometimes doesn't come
Browse files Browse the repository at this point in the history
Update expected error message.
  • Loading branch information
caalador committed Sep 8, 2021
1 parent 3c7d096 commit f739b3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ static Map<String, String> getDefaultDevDependencies() {
// Defining loader until a resolution exists to issue
// https://github.com/DanielSchaffer/webpack-babel-multi-target-plugin/issues/94
defaults.put("babel-loader", "8.2.2");
// Defining html-webpack-plugin due to same issue as babel-loader
defaults.put("html-webpack-plugin", "4.5.2");
defaults.put("copy-webpack-plugin", "5.1.2");
defaults.put("compression-webpack-plugin", "4.0.1");
defaults.put("extra-watch-webpack-plugin", "1.0.3");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void developmentModeExceptions() {
String errorMessage = findElement(ERROR_LOCATOR).getText();

Assert.assertTrue("Unexpected error message: " + errorMessage,
Pattern.matches(".*TypeError.* property 'foo' of.*null.*",
Pattern.matches(".*TypeError.* Cannot read properties of .*null.*.*reading 'foo'.*",
errorMessage));
}

Expand Down

0 comments on commit f739b3c

Please sign in to comment.