-
Notifications
You must be signed in to change notification settings - Fork 675
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
Remove the '--experimental-debug' feature #7681
Remove the '--experimental-debug' feature #7681
Conversation
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.
Great! Please look at my comments and also remove adding test-functional-local-debug* tasks from deploy-to-artifacts.yml
src/api/exportable-lib/index.js
Outdated
@@ -76,7 +76,7 @@ const exportableLib = { | |||
if (global[TEST_FILE_TEMP_VARIABLE_NAME]) { |
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.
As far as I know, TEST_FILE_TEMP_VARIABLE_NAME
is needed only for the compiler service mode. So, you can remove this if-else block.
@@ -154,10 +152,7 @@ export default class APIBasedTestFileCompilerBase extends TestFileCompilerBase { | |||
if (APIBasedTestFileCompilerBase._isNodeModulesDep(filename) && hadGlobalAPI) | |||
this._removeGlobalAPI(); | |||
|
|||
if (this.isCompilerServiceMode) | |||
this._compileExternalModuleInEsmMode(mod, filename, requireCompilers[ext], origExt); |
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.
You removed using this method, but you didn't remove this method from class
src/runner/bootstrapper.ts
Outdated
|
||
const compiler = new Compiler(sourceList, compilerOptions, { baseUrl, isCompilerServiceMode: false, esm }); | ||
private async _compileTests ({ sourceList, compilerOptions }: CompilerArguments): Promise<Test[]> { | ||
const baseUrl = this.configuration.getOption(OPTION_NAMES.baseUrl) as string; |
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.
Align please
src/test-run/index.ts
Outdated
@@ -1280,7 +1168,7 @@ export default class TestRun extends AsyncEventEmitter { | |||
// NOTE: In regular mode, it's possible to debug tests only using TestCafe UI ('Resume' and 'Next step' buttons). | |||
// So, we should warn on trying to debug in headless mode. |
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.
I think, this comment is useless
Release v2.6.1-rc.1 addresses this. |
https://testcafe.io/documentation/402639/reference/command-line-interface#--experimental-debug