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 a Windows path issue in the workbox-cli test. #884

Merged
merged 3 commits into from
Oct 12, 2017

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton @gauntface

This should fix https://ci.appveyor.com/project/gauntface/sw-helpers/build/1.0.772#L353

Unfortunately, AppVeyor didn't re-run with my latest commits in the PR that introduced the test, so it wasn't picked up prior to merging.

Copy link
Member

@addyosmani addyosmani left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -10,7 +10,7 @@ describe(`[workbox-cli] app.js`, function() {
const PROXIED_CONFIG_FILE = path.resolve(process.cwd(), '/will/be/proxied');
const PROXIED_ERROR = new Error('proxied error message');
const PROXIED_CONFIG = {};
const INVALID_CONFIG_FILE = '/does/not/exist';
const INVALID_CONFIG_FILE = path.resolve(process.cwd(), '/does/not/exist');

Choose a reason for hiding this comment

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

Will windows be ok with the forward slashes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

path.resolve() converts them to whatever the OS uses, so it will be okay with this change in place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

...at least it should, since I'm doing the same thing earlier, but this PR's AppVeyor run didn't complete due to #883

@jeffposnick
Copy link
Contributor Author

Re-running with #883 merged to confirm that it passes AppVeyor.

@workbox-pr-bot
Copy link
Collaborator

PR-Bot Size Plugin

Changed File Sizes

No file sizes have changed.

New Files

No new files have been added.

All File Sizes

View Table
File Before After Change GZipped
packages/workbox-core/build/browser/workbox-core.prod.js 4.04 KB 4.04 KB 0% 1.80 KB
packages/workbox-precaching/build/browser/workbox-precaching.prod.js 3.04 KB 3.04 KB 0% 1.35 KB
packages/workbox-routing/build/browser/workbox-routing.prod.js 1.48 KB 1.48 KB 0% 749 B
packages/workbox-runtime-caching/build/browser/workbox-runtime-caching.prod.js 1.80 KB 1.80 KB 0% 655 B
packages/workbox-sw/build/browser/workbox-sw.prod.js 1.28 KB 1.28 KB 0% 650 B

Workbox Aggregate Size Plugin

Total Size: 8.35KB
Percentage of Size Used: 86%

Gzipped: 3.81KB

@jeffposnick jeffposnick merged commit 7a13040 into v3 Oct 12, 2017
@jeffposnick jeffposnick deleted the fix-appveyor-workbox-cli branch October 12, 2017 21:53
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.

4 participants