Skip to content

Commit

Permalink
Update Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 2, 2023
1 parent 48b05ac commit cb630f8
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 337 deletions.
7 changes: 6 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"use strict";

if (typeof it === "function") {
if (
typeof it === "function" &&
// Jest loads the Babel config to parse file and update inline snapshots.
// This is ok, as it's not loading the Babel config to test Babel itself.
!new Error().stack.includes("jest-snapshot")
) {
throw new Error("Monorepo root's babel.config.js loaded by a test.");
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"husky": "^8.0.3",
"import-meta-resolve": "^3.0.0",
"is-ci": "^3.0.1",
"jest": "^29.5.0",
"jest": "^29.6.2",
"jest-light-runner": "^0.5.0",
"jest-worker": "^29.5.0",
"jest-worker": "^29.6.2",
"lint-staged": "^13.0.3",
"mergeiterator": "^1.4.4",
"prettier": "^3.0.0",
Expand Down
Loading

0 comments on commit cb630f8

Please sign in to comment.