You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing @cucumber/cucumber in test setup or step modules (ES modules) takes about 4 seconds. That's waiting time before the test suite begins to run.
import { Given, When, Then } from '@cucumber/cucumber'
When I run cucumber-js as a subprocess with blank config and no step/setup code, it takes about 400 ms to exit. When I import just a single module that imports @cucumber/cucumber the time jumps up to approximately 4.4 secs.
✨ What's your proposed solution?
Is it possible to restructure the library such that the public API (hooks and step definers) can be imported without also importing every other module in cucumber? I guess that should reduce the import footprint by a lot!
⛏ Have you considered any alternatives or workarounds?
N/A
📚 Any additional context?
I'm running this on a high powered machine with an NVME SSD, so I doubt it's my machine that's slowing this down.
The text was updated successfully, but these errors were encountered:
Korijn
changed the title
Imports slow
Importing the public cucumber API is slow
Aug 15, 2022
🤔 What's the problem you're trying to solve?
Importing
@cucumber/cucumber
in test setup or step modules (ES modules) takes about 4 seconds. That's waiting time before the test suite begins to run.import { Given, When, Then } from '@cucumber/cucumber'
When I run cucumber-js as a subprocess with blank config and no step/setup code, it takes about 400 ms to exit. When I import just a single module that imports
@cucumber/cucumber
the time jumps up to approximately 4.4 secs.✨ What's your proposed solution?
Is it possible to restructure the library such that the public API (hooks and step definers) can be imported without also importing every other module in cucumber? I guess that should reduce the import footprint by a lot!
⛏ Have you considered any alternatives or workarounds?
N/A
📚 Any additional context?
I'm running this on a high powered machine with an NVME SSD, so I doubt it's my machine that's slowing this down.
The text was updated successfully, but these errors were encountered: