Skip to content

Commit

Permalink
refactor to use ESM in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyitz committed Oct 7, 2018
1 parent e61b331 commit bcbc602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/__tests__/global_teardown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test('should call globalTeardown function of multiple projects', () => {
'../global-teardown/projects.jest.config.js',
);

const result = runJest.json('global-teardown', [`--config=${configPath}`]);
const result = runWithJson('global-teardown', [`--config=${configPath}`]);

expect(result.status).toBe(0);

Expand All @@ -100,7 +100,7 @@ test('should not call a globalTeardown of a project if there are no tests to run
'../global-teardown/projects.jest.config.js',
);

const result = runJest.json('global-teardown', [
const result = runWithJson('global-teardown', [
`--config=${configPath}`,
'--testPathPattern=project-1',
]);
Expand Down

0 comments on commit bcbc602

Please sign in to comment.