-
Notifications
You must be signed in to change notification settings - Fork 218
fix node tests in subdirs #807
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
Conversation
lib/src/runner/node/platform.dart
Outdated
var jsPath = | ||
p.join(precompiledPath, p.basename(testPath) + ".node_test.dart.js"); | ||
|
||
var jsPath = p.join(precompiledPath, testPath + ".node_test.dart.js"); |
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.
single quotes for consistency with the line 2 below.
Would also prefer '$testPath.node_test.dart.js'
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.
done, in general theres a crazy mix of single/double quotes here so eventually we might want to fix that repo-wide, but at least its consistent within this method now...
lib/src/runner/node/platform.dart
Outdated
@@ -248,7 +246,7 @@ class NodePlatform extends PlatformPlugin | |||
try { | |||
return await Process.start(settings.executable, | |||
settings.arguments.toList()..add(jsPath)..add(socketPort.toString()), | |||
environment: {'NODE_PATH': nodePath}); | |||
environment: {'NODE_PATH': nodePath}w); |
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.
?
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.
lol
lib/src/runner/node/platform.dart
Outdated
@@ -248,7 +246,7 @@ class NodePlatform extends PlatformPlugin | |||
try { | |||
return await Process.start(settings.executable, | |||
settings.arguments.toList()..add(jsPath)..add(socketPort.toString()), | |||
environment: {'NODE_PATH': nodePath}); | |||
environment: {'NODE_PATH': nodePath}w); |
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.
Curious what w
means in this case?
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.
it means my finger slipped ;)
This was using the basename of the file before, oops!