benmccormick.org/2017/02/26/running-jest-tests-before-each-git-commit

Preview meta tags from the benmccormick.org website.

Linked Hostnames

7

Thumbnail

Search Engine Appearance

Google

https://benmccormick.org/2017/02/26/running-jest-tests-before-each-git-commit

Running Jest Tests Before Each Git Commit

My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.



Bing

Running Jest Tests Before Each Git Commit

https://benmccormick.org/2017/02/26/running-jest-tests-before-each-git-commit

My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.



DuckDuckGo

https://benmccormick.org/2017/02/26/running-jest-tests-before-each-git-commit

Running Jest Tests Before Each Git Commit

My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.

  • General Meta Tags

    10
    • title
      Running Jest Tests Before Each Git Commit - Herding Lions
    • charset
      utf-8
    • X-UA-Compatible
      IE=edge
    • viewport
      width=device-width, initial-scale=1, shrink-to-fit=no
    • description
      My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.
  • Open Graph Meta Tags

    6
    • og:title
      Running Jest Tests Before Each Git Commit
    • og:description
      My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.
    • og:type
      article
    • og:url
      https://benmccormick.org/2017/02/26/180000.html
    • og:image
      https://benmccormick.micro.blog/uploads/2022/6ca3a124f1.png
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:image
      https://benmccormick.micro.blog/uploads/2022/6ca3a124f1.png
    • twitter:title
      Running Jest Tests Before Each Git Commit
    • twitter:description
      My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.
  • Item Prop Meta Tags

    8
    • name
      Running Jest Tests Before Each Git Commit
    • description
      My main work project makes heavy use of Jest to test our JavaScript code. For a while now I’ve wanted to set up a way to run tests every time I run a commit. I knew that git provides hooks that allow scripting actions to occur before or after any commit or push, and in fact we were already using a pre-commit hook script to lint our code with ESLint. But it was non-obvious how to make that work well with Jest testing.
    • datePublished
      2017-02-26T18:00:00-05:00
    • dateModified
      2022-12-03T20:47:33-05:00
    • wordCount
      1087
  • Link Tags

    16
    • apple-touch-icon
      https://micro.blog/benmccormick/favicon.png
    • authorization_endpoint
      https://micro.blog/indieauth/auth
    • me
      https://micro.blog/benmccormick
    • micropub
      https://micro.blog/micropub
    • microsub
      https://micro.blog/microsub

Links

21