diff --git a/__tests__/testParser.test.ts b/__tests__/testParser.test.ts index a79492e4..33f00fe2 100644 --- a/__tests__/testParser.test.ts +++ b/__tests__/testParser.test.ts @@ -124,17 +124,17 @@ note: run with `RUST_BACKTRACE=1` environment variable to display describe('resolvePath', () => { it('should find correct file for Java fileName', async () => { - const path = await resolvePath('EmailAddressTest', ['/build/', '/__pycache__/']) + const path = await resolvePath('', 'EmailAddressTest', ['/build/', '/__pycache__/']) expect(path).toBe('test_results/tests/email/src/test/java/action/surefire/report/email/EmailAddressTest.java') }) it('should find correct file for Kotlin fileName', async () => { - const path = await resolvePath('CalcUtilsTest', ['/build/', '/__pycache__/']) + const path = await resolvePath('', 'CalcUtilsTest', ['/build/', '/__pycache__/']) expect(path).toBe('test_results/tests/utils/src/test/java/action/surefire/report/calc/CalcUtilsTest.kt') }) it('should find correct file with a relative path', async () => { - const path = await resolvePath('./test_results/CalcUtilsTest.kt', ['/build/', '/__pycache__/']) + const path = await resolvePath('', './test_results/CalcUtilsTest.kt', ['/build/', '/__pycache__/']) expect(path).toBe('test_results/CalcUtilsTest.kt') }) })