forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: cached source maps | ||
Scenario: | ||
Given a file named "cypress/e2e/a.feature" with: | ||
""" | ||
Feature: a feature name | ||
Scenario: a scenario name | ||
Given a step | ||
""" | ||
And a file named "cypress/support/step_definitions/steps.ts" with: | ||
""" | ||
import { Given } from "@badeball/cypress-cucumber-preprocessor"; | ||
Given("a step", function(this: Mocha.Context) {}); | ||
for (let i = 0; i < 10; i++) { | ||
Given(`an unused step (${i + 1})`, function(this: Mocha.Context) {}); | ||
}; | ||
""" | ||
When I run cypress with environment variables | ||
| name | value | | ||
| DEBUG | cypress:server:preprocessor | | ||
Then it passes | ||
# Why two? Who knows. Cypress requests this file twice and the library once. | ||
And I should see exactly 2 instances of "headless and already processed" in stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters