Skip to content

Commit

Permalink
Fix tests that use testPathPatterns with subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchinn178 committed Mar 7, 2024
1 parent 85bccf1 commit 527de5e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/__tests__/executeTestsOnceInMpr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/globalSetup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/globalTeardown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 527de5e

Please sign in to comment.