Skip to content

Conversation

Aniket-Engg
Copy link
Collaborator

@@ -166,13 +173,19 @@ module.exports = class TestTab extends ViewPlugin {
runTest (testFilePath, callback) {
this.loading.hidden = false
this.fileManager.getFile(testFilePath).then((content) => {
var runningTest = {}
let runningTest = {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use const

optimize,
usingWorker: canUseWorker(currentVersion)
}
remixTests.runTestSources(runningTest, compilerConfig, () => {}, () => {}, (error, result) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is exacly for this kind of case that I would recommend an object argument instead of a list of ordered arguments (see comment here).

@Aniket-Engg Aniket-Engg removed the WIP label Jan 29, 2020
@Aniket-Engg Aniket-Engg requested a review from LianaHus January 29, 2020 05:34
@LianaHus LianaHus merged commit 6e27df8 into master Jan 29, 2020
@LianaHus LianaHus deleted the compiler-config-for-tests branch January 29, 2020 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants