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

Allow file types other than JSON to be linked via bodyPath etc #44

Closed
2 tasks done
tamj0rd2 opened this issue Apr 19, 2020 · 1 comment · Fixed by #177
Closed
2 tasks done

Allow file types other than JSON to be linked via bodyPath etc #44

tamj0rd2 opened this issue Apr 19, 2020 · 1 comment · Fixed by #177
Labels
enhancement New feature or request good first issue Good for newcomers released

Comments

@tamj0rd2
Copy link
Owner

tamj0rd2 commented Apr 19, 2020

JSON files can already be loaded, but only json.

  • Add yaml support
  • Support other extensions as just text
@tamj0rd2 tamj0rd2 added the enhancement New feature or request label Apr 19, 2020
@tamj0rd2 tamj0rd2 added the good first issue Good for newcomers label May 8, 2020
tamj0rd2 added a commit that referenced this issue May 14, 2020
Previously, fixtures could only be loaded if they ended with .json and
could be parsed as json. Json files that can't be parsed will still fail,
but now files other than .json can be loaded.

Yaml files will be parsed into JSON, and anything else will be loaded
as plain text.

fix #44
tamj0rd2 added a commit that referenced this issue May 14, 2020
Previously, fixtures could only be loaded if they ended with .json and
could be parsed as json. Json files that can't be parsed will still fail,
but now files other than .json can be loaded.

Yaml files will be parsed into JSON, and anything else will be loaded
as plain text.

fix #44
tamj0rd2 added a commit that referenced this issue May 14, 2020
Previously, fixtures could only be loaded if they ended with .json and
could be parsed as json. Json files that can't be parsed will still fail,
but now files other than .json can be loaded.

Yaml files will be parsed into JSON, and anything else will be loaded
as plain text.

fix #44
tamj0rd2 pushed a commit that referenced this issue May 14, 2020
# [0.4.0](v0.3.2...v0.4.0) (2020-05-14)

### Features

* support using non-json fixtures ([aebf58f](aebf58f)), closes [#44](#44)
@tamj0rd2
Copy link
Owner Author

🎉 This issue has been resolved in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant