Skip to content

Make production tests always run against dist/ (attempt 2) - #2942

Merged
lydell merged 8 commits into
prettier:masterfrom
lydell:fix-production-tests-2
Oct 2, 2017
Merged

lydell merged 8 commits into
prettier:masterfrom
lydell:fix-production-tests-2

Conversation

@lydell

@lydell lydell commented Sep 30, 2017 •

Copy link
Copy Markdown
Member

It works!

.spyOn(require(prettierApi).__debug, "getStream")
.mockImplementation(() => ({
then: handler => handler(options.input || "")
}));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ikatyang All the other .spyOn(...).mockImplementation(...) are above the jest.resetModules() call. Does this matter in any way?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The jest.resetModules() is for requires, it should not matter.

@lydell lydell changed the title Fix production tests 2 Make production tests always run against dist/ (attempt 2) Sep 30, 2017
@lydell

lydell commented Sep 30, 2017

Copy link
Copy Markdown
Member Author

Unless somebody has any notes, I think this is good to go.

@lydell
lydell merged commit 43cb08c into prettier:master Oct 2, 2017
@lydell
lydell deleted the fix-production-tests-2 branch October 2, 2017 15:58
@azz azz mentioned this pull request Oct 3, 2017
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 19, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants