Skip to content

Conversation

@RyanCavanaugh
Copy link
Member

Fixes some bad baseline behavior

Jakefile.js Outdated
var files = fs.readdirSync(sourceFolder);
var deleteEnding = '.delete';
for (var i in files) {
var filename = path.basename(files[i]);
Copy link
Member

@weswigham weswigham Aug 19, 2016

Choose a reason for hiding this comment

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

Replace with var filename = files[i].substr(sourceFolder.length + 1). (May need to call path.resolve on sourceFolder and files[i] first.) As it stands, any tests in subfolders (which is a thing for projects tests!) will get baselined up to the top (and then be missing).

Copy link
Member Author

Choose a reason for hiding this comment

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

These are actually already filename-only

@RyanCavanaugh RyanCavanaugh force-pushed the fixJakeBaselineAccept branch from f3c65ee to 6c60e5b Compare August 19, 2016 21:34
@weswigham
Copy link
Member

👍

@RyanCavanaugh RyanCavanaugh merged commit def29f6 into microsoft:master Aug 19, 2016
@RyanCavanaugh RyanCavanaugh deleted the fixJakeBaselineAccept branch August 19, 2016 22:10
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants