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 issue with relative paths #173

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

NickHeiner
Copy link

Part of #168.

Previously, absolute paths passed to sources were handled incorrectly.

@@ -45,6 +45,68 @@ describe('migrate command', () => {
expect(exitCode).toBe(0);
});

describe('sources', () => {
it('Migrates project by using `sources`', async () => {
Copy link
Author

Choose a reason for hiding this comment

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

These tests could be DRY'd out with some other tests in the file, but some people prefer explicit and duplicative tests, so I left them as-is.

expect(exitCode).toBe(0);
});

it('Migrates project by using `sources` with an absolute path', async () => {
Copy link
Author

Choose a reason for hiding this comment

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

This test fails without the src change applied.

@Rudeg Rudeg merged commit 9b527f3 into airbnb:master Jul 5, 2022
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.

2 participants