-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[+coverage] unit tests for ArtifactsManager.js and ArtifactPlugin.js #794
[+coverage] unit tests for ArtifactsManager.js and ArtifactPlugin.js #794
Conversation
24b2058
to
b62e9bf
Compare
b62e9bf
to
d00ef63
Compare
@@ -7,7 +9,7 @@ describe('buildDefaultArtifactsRootDirpath', () => { | |||
}); | |||
|
|||
it('should append subdir if dir does not end with /', () => { | |||
expect(buildDefaultArtifactsRootDirpath('iphone8', 'artifacts')).toBe('artifacts/iphone8.Today 1:23:45PM'); | |||
expect(buildDefaultArtifactsRootDirpath('iphone8', 'artifacts')).toBe(path.join('artifacts', 'iphone8.Today 1:23:45PM')); |
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.
paths/files can not include the character :
or any punctuation mark for that matter.
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 not? It is escaped by Node.js so OS feels OK about this. Works on Win32, Linux and Mac without any problem.
this
in.untrackArtifact()
method in ArtifactsManageronBeforeRelaunchApp
event in test artifactartifacts/ArtifactsManager.js
artifacts/templates/plugin/ArtifactPlugin.js
artifacts/templates/plugin/TwoSnapshotsPerTestPlugin.js
artifacts/templates/plugin/WholeTestRecorderPlugin.js
artifacts/templates/plugin/StartupAndTestRecorderPlugin.test.js
detox/src/artifacts/utils/buildDefaultArtifactsRootDirpath.test.js
detox/src/artifacts/utils/ArtifactPathBuilder.test.js