Skip to content
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

Fix WCT under Windows #333

Merged
merged 2 commits into from
May 5, 2018
Merged

Fix WCT under Windows #333

merged 2 commits into from
May 5, 2018

Conversation

aomarks
Copy link
Member

@aomarks aomarks commented May 4, 2018

Fix node package file resolution under Windows. We were not accounting for Windows style paths. Also simplify the implementation a bit, and rename some test fixture files so that new implementation can really find the files it is resolving.

Fixes https://github.com/Polymer/web-component-tester/issues/694

@aomarks aomarks force-pushed the wct-windows-path branch 4 times, most recently from 86262af to 1fad31e Compare May 5, 2018 05:50
@aomarks aomarks changed the title [WIP] maybe fix windows WCT Fix WCT under Windows May 5, 2018
Also rename some test fixture files so that new implementation can
really find the files it is resolving.
@aomarks aomarks force-pushed the wct-windows-path branch from 1fad31e to 44c6c47 Compare May 5, 2018 05:54
@aomarks aomarks requested a review from rictic May 5, 2018 05:55
{basedir: wctPackageRoot});
const relativeFilepath = path.relative(rootNodeModules, absoluteFilepath);
// Convert Windows filesystem paths.
const relativeUrl = relativeFilepath.replace(/\\/g, '/');
Copy link
Contributor

Choose a reason for hiding this comment

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

We should do this only on Windows

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@aomarks aomarks merged commit 47b2100 into master May 5, 2018
@aomarks aomarks deleted the wct-windows-path branch May 5, 2018 06:52
@tomloake
Copy link

tomloake commented May 8, 2018

Excuse my naivety and please shout if there's a central place to check this stuff but does anyone know when this will be released?

@aomarks
Copy link
Member Author

aomarks commented May 8, 2018

Today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants