Unverified Commit 25bc6afa authored by Leah's avatar Leah Committed by GitHub

fix(ci): exclusion regex now actually works instead of ignoring all tests (#58259)

parent 8eba72f3
...@@ -435,7 +435,7 @@ ${ENDGROUP}`) ...@@ -435,7 +435,7 @@ ${ENDGROUP}`)
? [] ? []
: [ : [
'--testNamePattern', '--testNamePattern',
`^(?!${test.excludedCases.map(escapeRegexp).join('|')})$`, `^(?!(?:${test.excludedCases.map(escapeRegexp).join('|')})$).`,
]), ]),
] ]
const env = { const env = {
......
...@@ -33,11 +33,17 @@ const SKIPPED_TEST_SUITES = { ...@@ -33,11 +33,17 @@ const SKIPPED_TEST_SUITES = {
'ReactRefreshRequire app propagates a hot update to closest accepted module', 'ReactRefreshRequire app propagates a hot update to closest accepted module',
'ReactRefreshRequire app propagates hot update to all inverse dependencies', 'ReactRefreshRequire app propagates hot update to all inverse dependencies',
], ],
'test/development/acceptance/ReactRefreshLogBox.test.ts': [
'ReactRefreshLogBox turbo conversion to class component (1)',
],
'test/development/acceptance/ReactRefreshRequire.test.ts': [ 'test/development/acceptance/ReactRefreshRequire.test.ts': [
'ReactRefreshRequire re-runs accepted modules', 'ReactRefreshRequire re-runs accepted modules',
'ReactRefreshRequire propagates a hot update to closest accepted module', 'ReactRefreshRequire propagates a hot update to closest accepted module',
'ReactRefreshRequire propagates hot update to all inverse dependencies', 'ReactRefreshRequire propagates hot update to all inverse dependencies',
], ],
'test/development/basic/hmr.test.ts': [
'basic HMR, basePath: "/docs" Error Recovery should show the error on all pages',
],
'test/development/jsconfig-path-reloading/index.test.ts': [ 'test/development/jsconfig-path-reloading/index.test.ts': [
/should automatically fast refresh content when path is added without error/, /should automatically fast refresh content when path is added without error/,
/should recover from module not found when paths is updated/, /should recover from module not found when paths is updated/,
...@@ -45,6 +51,20 @@ const SKIPPED_TEST_SUITES = { ...@@ -45,6 +51,20 @@ const SKIPPED_TEST_SUITES = {
'test/development/tsconfig-path-reloading/index.test.ts': [ 'test/development/tsconfig-path-reloading/index.test.ts': [
/should automatically fast refresh content when path is added without error/, /should automatically fast refresh content when path is added without error/,
], ],
'test/e2e/app-dir/app-css/index.test.ts': [
'app dir - css css support server layouts should support external css imports',
],
'test/e2e/app-dir/metadata/metadata.test.ts': [
'app dir - metadata file based icons should handle updates to the file icon name and order',
'app dir - metadata react cache should have same title and page value on initial load',
'app dir - metadata react cache should have same title and page value when navigating',
'app dir - metadata static routes should have icons as route',
'app dir - metadata twitter should render twitter card summary when image is not present',
'app dir - metadata twitter should support default twitter app card',
'app dir - metadata twitter should support default twitter player card',
'app dir - metadata twitter should support twitter card summary_large_image when image present',
'app dir - metadata viewport should support dynamic viewport export',
],
'test/e2e/basepath.test.ts': [ 'test/e2e/basepath.test.ts': [
'basePath should 404 when manually adding basePath with router.push', 'basePath should 404 when manually adding basePath with router.push',
'basePath should 404 when manually adding basePath with router.replace', 'basePath should 404 when manually adding basePath with router.replace',
...@@ -58,12 +78,17 @@ const SKIPPED_TEST_SUITES = { ...@@ -58,12 +78,17 @@ const SKIPPED_TEST_SUITES = {
'test/integration/app-document-remove-hmr/test/index.test.js': [ 'test/integration/app-document-remove-hmr/test/index.test.js': [
'_app removal HMR should HMR when _document is removed', '_app removal HMR should HMR when _document is removed',
], ],
'test/integration/app-document/test/index.test.js': [
'Document and App Client side should detect the changes to pages/_app.js and display it',
'Document and App Client side should detect the changes to pages/_document.js and display it',
],
'test/integration/css/test/css-modules.test.js': [ 'test/integration/css/test/css-modules.test.js': [
'CSS Modules Composes Ordering Development Mode should have correct color on index page (on nav from other)', 'CSS Modules Composes Ordering Development Mode should have correct color on index page (on nav from other)',
'CSS Modules Composes Ordering Development Mode should have correct color on index page (on nav from index)', 'CSS Modules Composes Ordering Development Mode should have correct color on index page (on nav from index)',
], ],
'test/integration/custom-error/test/index.test.js': [/Custom _error/], 'test/integration/custom-error/test/index.test.js': [/Custom _error/],
'test/integration/dynamic-routing/test/index.test.js': [ 'test/integration/dynamic-routing/test/index.test.js': [
'Dynamic Routing dev mode should work with HMR correctly',
'Dynamic Routing production mode should have correct cache entries on prefetch', 'Dynamic Routing production mode should have correct cache entries on prefetch',
'Dynamic Routing production mode should render dynamic route with query', 'Dynamic Routing production mode should render dynamic route with query',
], ],
...@@ -71,19 +96,13 @@ const SKIPPED_TEST_SUITES = { ...@@ -71,19 +96,13 @@ const SKIPPED_TEST_SUITES = {
'Dynamic Routing dev mode should resolve dynamic route href for page added later', 'Dynamic Routing dev mode should resolve dynamic route href for page added later',
'Dynamic Routing production mode should output a routes-manifest correctly', 'Dynamic Routing production mode should output a routes-manifest correctly',
], ],
'test/integration/import-assertion/test/index.test.js': [
/should handle json assertions/,
],
'test/integration/env-config/test/index.test.js': [ 'test/integration/env-config/test/index.test.js': [
'Env Config dev mode with hot reload should provide env for SSG', 'Env Config dev mode with hot reload should provide env for SSG',
'Env Config dev mode with hot reload should provide env correctly for SSR', 'Env Config dev mode with hot reload should provide env correctly for SSR',
'Env Config dev mode with hot reload should provide env correctly for API routes', 'Env Config dev mode with hot reload should provide env correctly for API routes',
], ],
'test/integration/app-document/test/index.test.js': [ 'test/integration/import-assertion/test/index.test.js': [
'Document and App Client side should detect the changes to pages/_document.js and display it', /should handle json assertions/,
],
'test/development/basic/hmr.test.ts': [
'basic HMR, basePath: "/docs" Error Recovery should show the error on all pages',
], ],
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment