Coder Social home page Coder Social logo

mimi's People

Contributors

gretacb avatar

Watchers

 avatar

mimi's Issues

Add more unit tests

Research how to add unit tests for React site: https://gatsby.dev/unit-testing

Also, look into solidifying the jest UI snapshot tests. I noticed they will unexpectedly fail on an updated class name, which I dont think should be the case.

> jest

 FAIL  src/components/__tests__/header.js
  Header
    ✕ renders correctly (48ms)

  ● Header › renders correctly

    expect(received).toMatchSnapshot()

    Snapshot name: `Header renders correctly 1`

    - Snapshot
    + Received

    @@ -1,7 +1,7 @@
      <header
    -   className="css-j8g5jg"
    +   className="css-1r8gbns"
      >
        <div
          className="css-1pgpot"
        >
          <h1>

       9 |       .create(<Header siteTitle="Carol Hansen" />)
      10 |       .toJSON()
    > 11 |     expect(tree).toMatchSnapshot()
         |                  ^
      12 |   })
      13 | })

      at Object.toMatchSnapshot (src/components/__tests__/header.js:11:18)

 › 1 snapshot failed.
Snapshot Summary
 › 1 snapshot failed from 1 test suite. Inspect your code changes or run `npm test -- -u` to update them.

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   1 failed, 1 total
  • Verify where these class ids come from, and check if these class Ids are "properties" that should be "asymmetrically matched".

Add inspo page

Add inspirations page?

  • People who have inspired me (writers, engineers, thinkers, etc) and shaped my thoughts on tech
  • Quotes
  • ...?

Update README

I have my badges setup, but need to replace rest of the content.

Troubleshoot blank page on first load

Problem:

  • After updating the site, the first site request will result in a blank page. Site contents will show after a hard refresh
  • Behaviour seen in Firefox and Chrome

Debugging

  • View Source is showing the expected HTML
  • The dev console is running InstallingWorker():

image

When InstallingWorker() finishes, it should print "Content is now available offline!"...but it's not.

  • Also interesting is the 404 error:
Uncaught (in promise) Error: 404 page could not be found. 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.