Skip to content

Updating Package json so that we can utilize playwright bdd in a ser…#339

Open
Deepa-Mahesh-P wants to merge 1 commit into
vitalets:mainfrom
Deepa-Mahesh-P:main
Open

Updating Package json so that we can utilize playwright bdd in a ser…#339
Deepa-Mahesh-P wants to merge 1 commit into
vitalets:mainfrom
Deepa-Mahesh-P:main

Conversation

@Deepa-Mahesh-P

@Deepa-Mahesh-P Deepa-Mahesh-P commented Sep 5, 2025

Copy link
Copy Markdown

I am running playwright / playwright BDD in a fastify server.

  1. Auto compile features
  2. and trigger playwright, without using NPX/npm/pnpm/child_process/spawn/background additional node&nodemon process etc etc. [ code being mostly transpiled/compiled, startup is instantaneous]
  3. testing startup is at least 3 4 times quicker
  4. no clogging extra memory in older laptops and vdi's mainly

@Deepa-Mahesh-P

Copy link
Copy Markdown
Author

without this, we are physically modifying the node modules package locally to start server

@Deepa-Mahesh-P

Copy link
Copy Markdown
Author

hi @vitalets pls take a look .. let me know for any questions

@vitalets

vitalets commented Sep 6, 2025

Copy link
Copy Markdown
Owner

Hey @Deepa-Mahesh-P , interesting approach.
Maybe providing a programmatic API for playwright-bdd would be better than exporting commands? E.g.

import { playwrightBdd } from 'playwright-bdd';

await playwrightBdd.gen();

Could you show a small demo how you use these exported commands?

@Deepa-Mahesh-P

Deepa-Mahesh-P commented Sep 22, 2025

Copy link
Copy Markdown
Author

Hey @Deepa-Mahesh-P , interesting approach. Maybe providing a programmatic API for playwright-bdd would be better than exporting commands? E.g.

import { playwrightBdd } from 'playwright-bdd';

await playwrightBdd.gen();

Could you show a small demo how you use these exported commands?

yes this is correct Vitaly .. that would be nice. basically i replicated the source code for my use...

image image image

They run in the fastify or axios or whichever server we can use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants