-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add debugger integration test for project with local Bundler settings #2882
base: main
Are you sure you want to change the base?
Add debugger integration test for project with local Bundler settings #2882
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0915b82
to
25f00de
Compare
c046f31
to
aefa155
Compare
25f00de
to
2b3512d
Compare
2b3512d
to
fc2d91c
Compare
aefa155
to
5a61541
Compare
5a61541
to
05effda
Compare
extensionUri: vscode.Uri.file( | ||
path.dirname(path.dirname(path.dirname(__dirname))), | ||
), | ||
} as unknown as vscode.ExtensionContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there two as
?
'source "https://rubygems.org"\n', | ||
); | ||
fs.writeFileSync( | ||
path.join(workspacePath, "Gemfile.lock"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be read from a fixture?
); | ||
} | ||
|
||
const stub = sinon.stub(vscode.window, "activeTextEditor").get(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const stub = sinon.stub(vscode.window, "activeTextEditor").get(() => { | |
const windowStub = sinon.stub(vscode.window, "activeTextEditor").get(() => { |
Motivation
This PR adds an integration test to verify that we can launch the debugger properly for a project with Bundler settings.
This test fails in versions previous than v0.22.0 because we weren't returning the composed bundle env back to the extension, with the same failure reported in #1767 and #1785.