Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Remove the fixtures directory #854

Conversation

EverlastingBugstopper
Copy link
Contributor

wave goodbye to the fixtures directory

Wrangler no longer relies on reading fixtures from the file system and instead creates them in the tests themselves.

@EverlastingBugstopper EverlastingBugstopper changed the title Avery/clean up clean up everybody contribute to shareholder value Remove the fixtures directory Nov 6, 2019
@EverlastingBugstopper EverlastingBugstopper requested a review from a team November 6, 2019 23:39
@EverlastingBugstopper EverlastingBugstopper self-assigned this Nov 6, 2019
@EverlastingBugstopper EverlastingBugstopper added this to the 1.6.0 milestone Nov 6, 2019
@EverlastingBugstopper EverlastingBugstopper changed the base branch from avery/require-webpack to master November 7, 2019 19:54
Copy link
Contributor

@ashleymichal ashleymichal left a comment

Choose a reason for hiding this comment

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

this is a great step in the right direction, love it.

Copy link
Contributor

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

love it

Copy link
Contributor

@gabbifish gabbifish left a comment

Choose a reason for hiding this comment

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

Small change request--can we call cleanup() at the end of every test as well?

type = "webpack"
"#};
"#,
);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we also want to call "cleanup" at the end of every one of these tests? I feel like that would be advisable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha! I would prefer for cleanup to explicitly happen as its own call instead of being put in preview(), given that preview() should not have cleanup as a side effect. OR change preview() to preview_and_cleanup().

Copy link
Contributor

Choose a reason for hiding this comment

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

fwiw, as part of my test refactor work i will likely update fixtures to conditionally clean up based on whether tests pass, per the test fixture library used by wasm_pack.

@gabbifish
Copy link
Contributor

gabbifish commented Nov 8, 2019 via email

@gabbifish
Copy link
Contributor

gabbifish commented Nov 8, 2019 via email

@EverlastingBugstopper
Copy link
Contributor Author

@gabbifish makes sense! addressed

Copy link
Contributor

@gabbifish gabbifish left a comment

Choose a reason for hiding this comment

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

LGTM!!

@gabbifish gabbifish merged commit 6a7d66b into master Nov 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the avery/clean-up-clean-up-everybody-contribute-to-shareholder-value branch November 9, 2019 19:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants