Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Conversation

@bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Jun 12, 2020

adds fixture folder to the allowed source folders for react-scripts

@bahmutov bahmutov marked this pull request as ready for review June 13, 2020 13:01
@bahmutov bahmutov changed the title add failing test loading fixture file feat: allow importing fixture files in react-scripts tests Jun 13, 2020
@bahmutov bahmutov merged commit 271235e into master Jun 13, 2020
@bahmutov bahmutov deleted the load-fixture branch June 13, 2020 13:03
@bahmutov
Copy link
Contributor Author

🎉 This PR is included in version 4.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dmtrKovalenko pushed a commit to cypress-io/cypress that referenced this pull request Oct 1, 2020
…o/cypress-react-unit-test#290)

For example, from `src/App.spec.js` you can now do
```js
// we can directly import JSON fixture files
// from the local JSON file
import names from './names.json'
// try importing JavaScript
import { add } from '../cypress/fixtures/add'
// try importing JSON from fixtures folder
import fixtureNames from '../cypress/fixtures/names.json'
```
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.

pass fixtures folder to react-scripts

2 participants