From 1d1371f19da4864b746f9193373aa79ffbc21eee Mon Sep 17 00:00:00 2001 From: hveldstra Date: Thu, 29 Feb 2024 16:47:39 +0000 Subject: [PATCH] test: remove redundant test The test is not checking the stacktraces as described. Would require intercepting the error object at the point it gets tracked via a metric - not straightforward. --- .../artillery/test/cli/run-typescript.test.js | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/packages/artillery/test/cli/run-typescript.test.js b/packages/artillery/test/cli/run-typescript.test.js index b2d672e4c2..b1b124085e 100644 --- a/packages/artillery/test/cli/run-typescript.test.js +++ b/packages/artillery/test/cli/run-typescript.test.js @@ -95,33 +95,3 @@ tap.test('Runs correctly when package is marked as external', async (t) => { await deleteFile(bundleLocation); }); - -tap.test( - 'Failure from a Typescript processor has a resolvable stack trace via source maps', - async (t) => { - const [_exitCode, output] = await execute([ - 'run', - '-o', - `${reportFilePath}`, - 'test/scripts/scenarios-typescript/error.yml' - ]); - - t.ok( - output.stdout.includes('error_from_ts_processor'), - 'Should have logged error from ts processor' - ); - - // // Search for the path - // const pathRegex = /\((.*?):\d+:\d+\)/; - // const match = output.stdout.match(pathRegex); - - // // Extract the path if found - // const extractedPath = match ? match[1] : null; - - // t.ok( - // extractedPath.includes('.ts'), - // 'Should be using source maps to resolve the path to a .ts file' - // ); - // t.ok(fs.existsSync(extractedPath), 'Error path should exist'); - } -);