mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
fix: Improve uncaught error handling (#14826)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ const globAsync = Promise.promisify(glob)
|
||||
const testStaticAssets = async (buildResourcePath) => {
|
||||
await Promise.all([
|
||||
testPackageStaticAssets({
|
||||
assetGlob: `${buildResourcePath}/packages/runner/dist/*.js`,
|
||||
assetGlob: `${buildResourcePath}/packages/runner/dist/cypress_runner.js`,
|
||||
badStrings: [
|
||||
// should only exist during development
|
||||
'webpack-livereload-plugin',
|
||||
@@ -34,6 +34,12 @@ const testStaticAssets = async (buildResourcePath) => {
|
||||
],
|
||||
minLineCount: 5000,
|
||||
}),
|
||||
testPackageStaticAssets({
|
||||
assetGlob: `${buildResourcePath}/packages/runner/dist/injection.js`,
|
||||
goodStrings: [
|
||||
'action("app:window:before:load",window)',
|
||||
],
|
||||
}),
|
||||
testPackageStaticAssets({
|
||||
assetGlob: `${buildResourcePath}/packages/runner/dist/*.css`,
|
||||
goodStrings: [
|
||||
|
||||
Reference in New Issue
Block a user