diff --git a/packages/jest-reporters/src/__tests__/get_result_header.test.js b/packages/jest-reporters/src/__tests__/get_result_header.test.js index a11c24945d1b..3c0c3351ae3e 100644 --- a/packages/jest-reporters/src/__tests__/get_result_header.test.js +++ b/packages/jest-reporters/src/__tests__/get_result_header.test.js @@ -6,7 +6,6 @@ */ import {makeGlobalConfig} from '../../../../TestUtils'; -import {formatTestPath} from '../utils'; import getResultHeader from '../get_result_header'; const terminalLink = require('terminal-link'); @@ -26,8 +25,8 @@ test('should call `terminal-link` correctly', () => { getResultHeader(testResult, globalConfig); expect(terminalLink).toBeCalledWith( - formatTestPath(globalConfig, testResult.testFilePath), - `file://${testResult.testFilePath}`, + expect.stringContaining('foo'), + 'file:///foo', expect.objectContaining({fallback: expect.any(Function)}), ); });