diff --git a/e2e/__tests__/executeTestsOnceInMpr.ts b/e2e/__tests__/executeTestsOnceInMpr.ts index 016d6eeec9a3..926307b4c5d6 100644 --- a/e2e/__tests__/executeTestsOnceInMpr.ts +++ b/e2e/__tests__/executeTestsOnceInMpr.ts @@ -46,7 +46,7 @@ test('Tests are executed only once even in an MPR', () => { }); /* eslint-enable sort-keys */ - const {stderr, exitCode} = runJest(DIR, ['foo/folder/my-test-bar.js']); + const {stderr, exitCode} = runJest(DIR, ['my-test-bar.js']); expect(exitCode).toBe(0); diff --git a/e2e/__tests__/globalSetup.test.ts b/e2e/__tests__/globalSetup.test.ts index 454b5f76e8bf..ffadb5b5b20c 100644 --- a/e2e/__tests__/globalSetup.test.ts +++ b/e2e/__tests__/globalSetup.test.ts @@ -109,7 +109,7 @@ test('should not call a globalSetup of a project if there are no tests to run fr const result = runWithJson(e2eDir, [ `--config=${configPath}`, - '--testPathPatterns=project-1', + '--testPathPatterns=setup1', ]); expect(result.exitCode).toBe(0); diff --git a/e2e/__tests__/globalTeardown.test.ts b/e2e/__tests__/globalTeardown.test.ts index cefd7e88accb..863f71e260e2 100644 --- a/e2e/__tests__/globalTeardown.test.ts +++ b/e2e/__tests__/globalTeardown.test.ts @@ -93,7 +93,7 @@ test('should not call a globalTeardown of a project if there are no tests to run const result = runWithJson('global-teardown', [ `--config=${configPath}`, - '--testPathPatterns=project-1', + '--testPathPatterns=teardown1', ]); expect(result.exitCode).toBe(0); diff --git a/e2e/global-setup/project-1/setup.test.js b/e2e/global-setup/project-1/setup1.test.js similarity index 100% rename from e2e/global-setup/project-1/setup.test.js rename to e2e/global-setup/project-1/setup1.test.js diff --git a/e2e/global-setup/project-2/setup.test.js b/e2e/global-setup/project-2/setup2.test.js similarity index 100% rename from e2e/global-setup/project-2/setup.test.js rename to e2e/global-setup/project-2/setup2.test.js diff --git a/e2e/global-teardown/project-1/teardown.test.js b/e2e/global-teardown/project-1/teardown1.test.js similarity index 100% rename from e2e/global-teardown/project-1/teardown.test.js rename to e2e/global-teardown/project-1/teardown1.test.js diff --git a/e2e/global-teardown/project-2/teardown.test.js b/e2e/global-teardown/project-2/teardown2.test.js similarity index 100% rename from e2e/global-teardown/project-2/teardown.test.js rename to e2e/global-teardown/project-2/teardown2.test.js