skip to content
Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL. Preview this item
ClosePreview this item
Checking...

Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL.

Author: Daniel Irvine
Publisher: Birmingham : Packt Publishing, Limited, 2019.
Edition/Format:   eBook : Document : EnglishView all editions and formats
Summary:
This book is comprehensive walk through of Test-Driven Development (TDD) for React. It takes a first-principles approach to teach the TDD process using vanilla Jest. Readers build their own test library as they refactor out repeated code in tandem with building a real-world application. It also covers acceptance testing using Cucumber and ...
Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

Find a copy online

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Genre/Form: Electronic books
Additional Physical Format: Print version:
Irvine, Daniel.
Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL.
Birmingham : Packt Publishing, Limited, ©2019
Material Type: Document, Internet resource
Document Type: Internet Resource, Computer File
All Authors / Contributors: Daniel Irvine
ISBN: 9781789138788 1789138787
OCLC Number: 1101035886
Notes: Passing through props to the child component
Description: 1 online resource (483 pages)
Contents: Cover; Title Page; Copyright and Credits; Dedication; About Packt; Contributors; Table of Contents; Preface; Section 1: First Principles of TDD; Chapter 1: First Steps with Test-Driven Development; Technical requirements; Creating a new React project from scratch; Installing NPM; Creating a new Jest project; Commit early and often; Bringing in React and Babel; Displaying data with your first test; Writing a failing test; Writing your first expectation; Rendering React from a test; Make it pass; Backtracking on ourselves; Refactoring your work; Promoting variables; Using a beforeEach block Extracting methodsWriting great tests; Red, green, refactor; Streamlining your testing process; Rendering lists and detail views; Rendering the list of appointments; Specifying list items; Selecting data to view; Initial selection of data; Adding events to a functional component; Manually testing our changes; Adding an entrypoint; Putting it all together with Webpack; Before you check in ... ; Summary; Exercises; Further learning; Chapter 2: Test-driving Data Input with React; Extracting a test helper; Adding a form element; Extracting a form-finder method; Accepting text input Extracting an expectation group functionPassing in an existing value; Extracting out a field-finder function; Labeling the field; Checking for null or not; Saving the customer information; Submitting a form with data; Using state instead of props; Duplicating fields; Nesting describe blocks; Generating parameterized tests; Solving a batch of tests; Modifying handleChange to work with multiple fields; Finishing off the form with a submit button; Selecting from a dropdown; Providing options to a dropdown; Utilizing defaultProps to specify real data; Pre-selecting a value Completing the remaining tests for the select boxMaking a choice from radio buttons; Constructing a calendar view; Displaying radio buttons for available appointments; Hiding input controls; Finishing it off; Manually testing your solution; Summary; Exercises; Further learning; Chapter 3: Exploring Test Doubles; What is a test double?; Learning to avoid fakes; Submitting forms using spies; Untangling Arrange-Act-Assert; Watching it fail; Making spies reusable; Using a Jest matcher to simplify expectations; Stubbing the fetch API; Replacing global variables with spies Installing the window.fetch polyfillActing on return values with stubs; Acting on the fetch response; Displaying errors to the user; Extracting test helpers; Using Jest to spy and stub; Extracting spy helpers; Using jest.spyOn to spy on module mocks; Drying up DOM queries; Extracting container.querySelectorAll; Drying up DOM events; Summary; Exercises; Further learning; Chapter 4: Creating a User Interface; Fetching data on load with useEffect; Stubbing exported constants; Using props within useEffect; Passing customer data through to AppointmentForm

Abstract:

This book is comprehensive walk through of Test-Driven Development (TDD) for React. It takes a first-principles approach to teach the TDD process using vanilla Jest. Readers build their own test  Read more...

Reviews

User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

Be the first.

Similar Items

Related Subjects:(2)

Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


Primary Entity

<http://www.worldcat.org/oclc/1101035886> # Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL.
    a schema:Book, schema:MediaObject, schema:CreativeWork ;
    library:oclcnum "1101035886" ;
    library:placeOfPublication <http://id.loc.gov/vocabulary/countries/enk> ;
    library:placeOfPublication <http://experiment.worldcat.org/entity/work/data/9103463475#Place/birmingham> ; # Birmingham
    schema:about <http://experiment.worldcat.org/entity/work/data/9103463475#Topic/javascript> ; # JavaScript
    schema:about <http://experiment.worldcat.org/entity/work/data/9103463475#Topic/user_interfaces> ; # User interfaces
    schema:bookFormat schema:EBook ;
    schema:creator <http://experiment.worldcat.org/entity/work/data/9103463475#Person/irvine_daniel> ; # Daniel Irvine
    schema:datePublished "2019" ;
    schema:description "Cover; Title Page; Copyright and Credits; Dedication; About Packt; Contributors; Table of Contents; Preface; Section 1: First Principles of TDD; Chapter 1: First Steps with Test-Driven Development; Technical requirements; Creating a new React project from scratch; Installing NPM; Creating a new Jest project; Commit early and often; Bringing in React and Babel; Displaying data with your first test; Writing a failing test; Writing your first expectation; Rendering React from a test; Make it pass; Backtracking on ourselves; Refactoring your work; Promoting variables; Using a beforeEach block"@en ;
    schema:description "This book is comprehensive walk through of Test-Driven Development (TDD) for React. It takes a first-principles approach to teach the TDD process using vanilla Jest. Readers build their own test library as they refactor out repeated code in tandem with building a real-world application. It also covers acceptance testing using Cucumber and ..."@en ;
    schema:exampleOfWork <http://worldcat.org/entity/work/id/9103463475> ;
    schema:genre "Electronic books"@en ;
    schema:inLanguage "en" ;
    schema:isSimilarTo <http://worldcat.org/entity/work/data/9103463475#CreativeWork/mastering_react_test_driven_development_build_rock_solid_well_tested_web_apps_with_react_redux_and_graphql> ;
    schema:name "Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL."@en ;
    schema:productID "1101035886" ;
    schema:publication <http://www.worldcat.org/title/-/oclc/1101035886#PublicationEvent/birmingham_packt_publishing_limited_2019> ;
    schema:publisher <http://experiment.worldcat.org/entity/work/data/9103463475#Agent/packt_publishing_limited> ; # Packt Publishing, Limited
    schema:url <http://www.vlebooks.com/vleweb/product/openreader?id=none&isbn=9781789138788> ;
    schema:url <https://public.ebookcentral.proquest.com/choice/publicfullrecord.aspx?p=5764477> ;
    schema:workExample <http://worldcat.org/isbn/9781789138788> ;
    wdrs:describedby <http://www.worldcat.org/title/-/oclc/1101035886> ;
    .


Related Entities

<http://experiment.worldcat.org/entity/work/data/9103463475#Agent/packt_publishing_limited> # Packt Publishing, Limited
    a bgn:Agent ;
    schema:name "Packt Publishing, Limited" ;
    .

<http://experiment.worldcat.org/entity/work/data/9103463475#Person/irvine_daniel> # Daniel Irvine
    a schema:Person ;
    schema:familyName "Irvine" ;
    schema:givenName "Daniel" ;
    schema:name "Daniel Irvine" ;
    .

<http://worldcat.org/entity/work/data/9103463475#CreativeWork/mastering_react_test_driven_development_build_rock_solid_well_tested_web_apps_with_react_redux_and_graphql>
    a schema:CreativeWork ;
    rdfs:label "Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL." ;
    schema:description "Print version:" ;
    schema:isSimilarTo <http://www.worldcat.org/oclc/1101035886> ; # Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL.
    .

<http://worldcat.org/isbn/9781789138788>
    a schema:ProductModel ;
    schema:isbn "1789138787" ;
    schema:isbn "9781789138788" ;
    .

<http://www.worldcat.org/title/-/oclc/1101035886>
    a genont:InformationResource, genont:ContentTypeGenericResource ;
    schema:about <http://www.worldcat.org/oclc/1101035886> ; # Mastering React Test-Driven Development : Build Rock-Solid, Well-tested Web Apps with React, Redux and GraphQL.
    schema:dateModified "2019-10-18" ;
    void:inDataset <http://purl.oclc.org/dataset/WorldCat> ;
    .


Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.