-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix-1735 Parentheses in developers' paths break cucumber's own tests #1824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
fb53950
Extract functions into their own files
mattwynne d9712b1
Allow injection of exclusion filter to make easier to test
mattwynne 8fcb750
Make sure we always exclude ourselves
mattwynne db95b77
Add unit test for getDefinitionLineAndUri
mattwynne ed45132
-adds regex pattern for stack traces
eoola a7750b9
Merge branch 'main' into fix-1735-parens-in-path
eoola d1217f0
- adds "source-map-support" dependency
eoola 8e462b9
Merge branch 'main' into fix-1735-try-again
eoola d9c527e
Merge branch 'main' of github.com:cucumber/cucumber-js into fix-1735-…
eoola fec9841
update cspotcode/source-map-support
eoola 2ce6a34
Merge branch 'main' of github.com:cucumber/cucumber-js into fix-1735-…
eoola b11b988
remove .DS_Store
eoola b4203ba
Merge branch 'main' into fix-1735-try-again
mattwynne 827127f
Merge branch 'main' into fix-1735-try-again
mattwynne 1d7a089
updates unit test to support paths on windows
eoola f6edf13
Merge branch 'fix-1735-try-again' of github.com:eoola/cucumber-js int…
eoola 68cab1e
Removes assertion for a failing test that's no longer needed
eoola 48a7929
Removes exception for the custom stack trace feature
eoola ea60088
Updates changelog
eoola 9f03c2f
fixed linting for previous commit
eoola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
30 changes: 15 additions & 15 deletions
30
src/support_code_library_builder/get_definition_line_and_uri.ts
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
src/support_code_library_builder/get_definition_line_and_uri_spec.ts
This file contains hidden or 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,17 @@ | ||
import assert from 'assert' | ||
import { getDefinitionLineAndUri } from './get_definition_line_and_uri' | ||
import path from 'path' | ||
|
||
describe(getDefinitionLineAndUri.name, () => { | ||
it('correctly gets the filename of the caller', () => { | ||
const includeAnyFile = (): boolean => false | ||
const { uri, line } = getDefinitionLineAndUri('.', includeAnyFile) | ||
assert.strictEqual( | ||
path.normalize(uri), | ||
path.normalize( | ||
'src/support_code_library_builder/get_definition_line_and_uri_spec.ts' | ||
) | ||
) | ||
assert.strictEqual(line, 8) | ||
}) | ||
}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.