Comments (6)
Interesting! Thank you for digging into this!
So yeah, this is a bit of a bummer. The correct fix is simple, but will require a slightly different approach to the test. Here's the fix:
- finishDate = faker.date.between(startDate, new Date()).getTime(),
+ finishDate = faker.date.between(new Date(startDate), new Date()).getTime(),
The problem is this will require changing the test a bit which would require I re-record the video. Not a huge deal, but a bit of a bummer.
from bookshelf.
Here's the update that I think should be made to the test for this:
+ const user = await loginAsUser()
+ const book = await booksDB.create(buildBook())
+ const listItem = await listItemsDB.create(
+ buildListItem({owner: user, book, finishDate: null}),
+ )
+ await renderBookScreen({user, book, listItem})
+
- const {listItem} = await renderBookScreen()
-
- // set the listItem to be unread in the DB
- await listItemsDB.update(listItem.id, {finishDate: null})
I'm going to give this some thought. I think I'll need to rerecord the video before I make these changes.
Thanks again for reporting this!
from bookshelf.
@all-contributors please add @milamer for bugs
from bookshelf.
I've put up a pull request to add @milamer! 🎉
from bookshelf.
I've updated the main
branch to have this correction. An update to the exercise will come in the future.
from bookshelf.
The video that needs an update is this one: https://epicreact.dev/modules/build-an-epic-react-app/integration-testing-extra-credit-solution-06
It's a relief that only one video is impacted, but a bummer that it's one of the longer ones 😅 I'll put this on my list though. Thanks again!
from bookshelf.
Related Issues (20)
- Several videos with the same name cause unpredictable behavior HOT 2
- Placeholder is displayed instead of actual video track sometimes HOT 2
- Figure out why Node v10.13 fails on MacOS HOT 1
- suggest little change about useAsync hook HOT 1
- staleTime not work? HOT 6
- Question: useAsync method HOT 2
- How to fix this? HOT 2
- Incorrect video title for "cache management extra 2" HOT 9
- Css selectors in the rating component HOT 1
- Add Node 15.x support HOT 2
- On the Integration testing exercise, comment is suggesting to mock `/me` endpoint rather than `/bootstrap` HOT 2
- Unable to iterate through the options after running `node go` ? HOT 1
- Error with command: npm start
- Optional chain operator syntax throwing eslint error.
- help explain the useAsync HOT 1
- 🚨 npx is not available on this computer. Please install [email protected] or greater
- Wrong description on epicreact.dev HOT 2
- Issue Chapter 8 Cache Management - listItems.find HOT 3
- not able to run my local HOT 3
- Hi, I was going through the course and I couldn't find the exercise files in the main. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookshelf.