Skip to content

Commit

Permalink
bump jest to v29
Browse files Browse the repository at this point in the history
Summary:
Updates the jest version to latest to unlock some new features.
One breaking change means jest prints a slightly different snapshot format (a lighter and better format) - so all snapshots updated.

Reviewed By: pieterv

Differential Revision: D40964824

fbshipit-source-id: 6cc9375db2130ca50e44c940dd55af0d0380730f
  • Loading branch information
bradzacher authored and facebook-github-bot committed Nov 7, 2022
1 parent 9e62314 commit f087fdb
Show file tree
Hide file tree
Showing 19 changed files with 1,848 additions and 2,865 deletions.
26 changes: 13 additions & 13 deletions tools/hermes-parser/js/hermes-parser/__tests__/Array-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ const testCase: AlignmentCase = {
describe('Array', () => {
test('ESTree', () => {
expect(parseForSnapshot(testCase.code)).toMatchInlineSnapshot(`
Object {
"body": Array [
Object {
"declarations": Array [
Object {
"id": Object {
"elements": Array [
Object {
{
"body": [
{
"declarations": [
{
"id": {
"elements": [
{
"name": "a",
"optional": false,
"type": "Identifier",
"typeAnnotation": null,
},
null,
Object {
{
"name": "b",
"optional": false,
"type": "Identifier",
Expand All @@ -51,16 +51,16 @@ describe('Array', () => {
"type": "ArrayPattern",
"typeAnnotation": null,
},
"init": Object {
"elements": Array [
Object {
"init": {
"elements": [
{
"literalType": "numeric",
"raw": "1",
"type": "Literal",
"value": 1,
},
null,
Object {
{
"literalType": "numeric",
"raw": "2",
"type": "Literal",
Expand Down
Loading

0 comments on commit f087fdb

Please sign in to comment.