artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
7.88k stars 501 forks source link

Typescript #846

Open himasimplisafe opened 4 years ago

himasimplisafe commented 4 years ago

Does Artillery has Type script support for custom functions or we need to use only .js files?

raheelriax commented 3 years ago

Need TS support

RaLazo commented 3 years ago

TS support would be very helpful :)

ysfaran commented 1 year ago

Is there really no TypeScript support? Could you give us an update on this please?

usb79 commented 1 year ago

Will there be TS support?

ArCiGo commented 1 year ago

Is there any update on this?

Lipsa16QE commented 1 year ago

Indeed Support for TS would be great , any updates regarding TypeScript support?

HaNdTriX commented 1 year ago

Alternative

fyi: You can use jsdoc to get at least some type support:

/* @typedef {import('@playwright/test')} Playwright */

/**
 * flow
 * @param {Playwright.Page} page
 */
async function helloFlow(page) {
  await page.goto(`https://artillery.io/blog/${getRandomSlug()}`);
}
ArCiGo commented 1 year ago

Alternative

fyi: You can use jsdoc to get at least some type support:

/* @typedef {import('@playwright/test')} Playwright */

/**
 * flow
 * @param {Playwright.Page} page
 */
async function helloFlow(page) {
  await page.goto(`https://artillery.io/blog/${getRandomSlug()}`);
}

@HaNdTriX And can work with an existing solution, made entirely with TS + Page Object Model?