From 597e70d69f8a2c0023d0a001c819fed3c2c2ac3a Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Mon, 8 May 2023 14:10:07 -0700 Subject: [PATCH] Improve eslint derived fixtures --- .../scripts/build-react-hooks-fixures.js | 35 +++++++++++-------- ...ror.rules-of-hooks-1dd104f3e579.expect.md} | 0 ...s => error.rules-of-hooks-1dd104f3e579.js} | 0 ...ror.rules-of-hooks-2e9963324591.expect.md} | 0 ...s => error.rules-of-hooks-2e9963324591.js} | 0 ...ror.rules-of-hooks-3d95dc7a5f98.expect.md} | 0 ...s => error.rules-of-hooks-3d95dc7a5f98.js} | 0 ...ror.rules-of-hooks-62bded832974.expect.md} | 0 ...s => error.rules-of-hooks-62bded832974.js} | 0 ...ror.rules-of-hooks-70d37bc6dabc.expect.md} | 0 ...s => error.rules-of-hooks-70d37bc6dabc.js} | 0 ...ror.rules-of-hooks-92708a08b920.expect.md} | 0 ...s => error.rules-of-hooks-92708a08b920.js} | 0 ...ror.rules-of-hooks-99ca80f8b0b6.expect.md} | 0 ...s => error.rules-of-hooks-99ca80f8b0b6.js} | 0 ...ror.rules-of-hooks-baf61a179e4c.expect.md} | 0 ...s => error.rules-of-hooks-baf61a179e4c.js} | 0 ...ror.rules-of-hooks-bfa72d1b8135.expect.md} | 0 ...s => error.rules-of-hooks-bfa72d1b8135.js} | 0 ...ror.rules-of-hooks-e70a6f5d6d4b.expect.md} | 0 ...s => error.rules-of-hooks-e70a6f5d6d4b.js} | 0 ...ror.rules-of-hooks-ec94ef9d80df.expect.md} | 0 ...s => error.rules-of-hooks-ec94ef9d80df.js} | 0 ...ror.rules-of-hooks-fc7007852fe0.expect.md} | 0 ...s => error.rules-of-hooks-fc7007852fe0.js} | 0 ... => rules-of-hooks-0592bd574811.expect.md} | 0 ...s-23.js => rules-of-hooks-0592bd574811.js} | 0 .../rules-of-hooks-0e2214abc294.expect.md | 28 +++++++++++++++ ...s-27.js => rules-of-hooks-0e2214abc294.js} | 2 -- ... => rules-of-hooks-1ff6c3fbbc94.expect.md} | 0 ...ks-0.js => rules-of-hooks-1ff6c3fbbc94.js} | 0 ... => rules-of-hooks-23dc7fffde57.expect.md} | 0 ...s-13.js => rules-of-hooks-23dc7fffde57.js} | 0 ... => rules-of-hooks-2bec02ac982b.expect.md} | 0 ...s-11.js => rules-of-hooks-2bec02ac982b.js} | 0 ... => rules-of-hooks-2e405c78cb80.expect.md} | 0 ...s-12.js => rules-of-hooks-2e405c78cb80.js} | 0 ... => rules-of-hooks-33a6e23edac1.expect.md} | 0 ...ks-3.js => rules-of-hooks-33a6e23edac1.js} | 0 ... => rules-of-hooks-347b0dae66f1.expect.md} | 0 ...ks-5.js => rules-of-hooks-347b0dae66f1.js} | 0 ... => rules-of-hooks-485bf041f55f.expect.md} | 0 ...ks-7.js => rules-of-hooks-485bf041f55f.js} | 0 ... => rules-of-hooks-4f6c78a14bf7.expect.md} | 0 ...ks-8.js => rules-of-hooks-4f6c78a14bf7.js} | 0 ... => rules-of-hooks-7e52f5eec669.expect.md} | 0 ...ks-4.js => rules-of-hooks-7e52f5eec669.js} | 0 ... => rules-of-hooks-844a496db20b.expect.md} | 0 ...ks-2.js => rules-of-hooks-844a496db20b.js} | 0 ... => rules-of-hooks-8f1c2c3f71c9.expect.md} | 0 ...ks-1.js => rules-of-hooks-8f1c2c3f71c9.js} | 0 ... => rules-of-hooks-9a47e97b5d13.expect.md} | 0 ...s-16.js => rules-of-hooks-9a47e97b5d13.js} | 0 ... => rules-of-hooks-9d7879272ff6.expect.md} | 0 ...s-14.js => rules-of-hooks-9d7879272ff6.js} | 0 ... => rules-of-hooks-c1e8c7f4c191.expect.md} | 0 ...s-29.js => rules-of-hooks-c1e8c7f4c191.js} | 0 ... => rules-of-hooks-cfdfe5572fc7.expect.md} | 0 ...s-10.js => rules-of-hooks-cfdfe5572fc7.js} | 0 ... => rules-of-hooks-df4d750736f3.expect.md} | 0 ...s-22.js => rules-of-hooks-df4d750736f3.js} | 0 ... => rules-of-hooks-dfde14171fcd.expect.md} | 0 ...s-20.js => rules-of-hooks-dfde14171fcd.js} | 0 ... => rules-of-hooks-e5dd6caf4084.expect.md} | 0 ...ks-6.js => rules-of-hooks-e5dd6caf4084.js} | 0 ... => rules-of-hooks-e66a744cffbe.expect.md} | 0 ...s-17.js => rules-of-hooks-e66a744cffbe.js} | 0 ... => rules-of-hooks-eacfcaa6ef89.expect.md} | 0 ...s-19.js => rules-of-hooks-eacfcaa6ef89.js} | 0 ... => rules-of-hooks-fe6042f7628b.expect.md} | 0 ...s-25.js => rules-of-hooks-fe6042f7628b.js} | 0 ...todo.error.rules-of-hooks-0a42415d4990.js} | 1 + ...todo.error.rules-of-hooks-112dd48477e6.js} | 1 + ...todo.error.rules-of-hooks-1a1e29f21a79.js} | 1 + ...todo.error.rules-of-hooks-251e67613de1.js} | 1 + ...todo.error.rules-of-hooks-310a4e022130.js} | 1 + ...todo.error.rules-of-hooks-3d8726664cf7.js} | 1 + ...todo.error.rules-of-hooks-42576e5c5613.js} | 1 + ...todo.error.rules-of-hooks-429b3b1a8ee4.js} | 1 + ...todo.error.rules-of-hooks-4d1a9ed4d44a.js} | 1 + ...todo.error.rules-of-hooks-52cd6055b4fb.js} | 1 + ...todo.error.rules-of-hooks-60e23f3caf5b.js} | 1 + ...todo.error.rules-of-hooks-7451860cd46f.js} | 1 + ...todo.error.rules-of-hooks-7bcc5c5c0416.js} | 1 + ...todo.error.rules-of-hooks-880ce4a7e686.js} | 1 + ...todo.error.rules-of-hooks-92503f581023.js} | 1 + ...todo.error.rules-of-hooks-b4af90990150.js} | 1 + ...todo.error.rules-of-hooks-be9bff592ca0.js} | 1 + ...todo.error.rules-of-hooks-c0069d062d50.js} | 1 + ...todo.error.rules-of-hooks-c277f25e7c03.js} | 1 + ...todo.error.rules-of-hooks-cdcb36730551.js} | 1 + ...todo.error.rules-of-hooks-de96bb13ad47.js} | 1 + ...todo.error.rules-of-hooks-e803203d651b.js} | 1 + ...todo.error.rules-of-hooks-f486864c4bec.js} | 1 + ...todo.error.rules-of-hooks-fbe12b5ccfce.js} | 1 + ...js => todo.rules-of-hooks-279ac76f53af.js} | 1 + ...js => todo.rules-of-hooks-27c18dc8dad2.js} | 1 + ...js => todo.rules-of-hooks-28a78701970c.js} | 1 + ...js => todo.rules-of-hooks-3d692676194b.js} | 1 + ...js => todo.rules-of-hooks-6949b255e7eb.js} | 1 + ...js => todo.rules-of-hooks-69521d94fa03.js} | 1 + ...js => todo.rules-of-hooks-8503ca76d6f8.js} | 1 + ...js => todo.rules-of-hooks-93dc5d5e538a.js} | 1 + ...js => todo.rules-of-hooks-d0935abedc42.js} | 1 + ...js => todo.rules-of-hooks-dba5889e4ba6.js} | 1 + ...js => todo.rules-of-hooks-e0a5db3ae21e.js} | 1 + ...js => todo.rules-of-hooks-e29c874aa913.js} | 1 + ...js => todo.rules-of-hooks-e9f9bac89f8f.js} | 1 + ...js => todo.rules-of-hooks-f7b5986699ca.js} | 1 + ...js => todo.rules-of-hooks-fadd52c1e460.js} | 1 + 110 files changed, 87 insertions(+), 17 deletions(-) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-52.expect.md => error.rules-of-hooks-1dd104f3e579.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-52.js => error.rules-of-hooks-1dd104f3e579.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-53.expect.md => error.rules-of-hooks-2e9963324591.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-53.js => error.rules-of-hooks-2e9963324591.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-54.expect.md => error.rules-of-hooks-3d95dc7a5f98.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-54.js => error.rules-of-hooks-3d95dc7a5f98.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-40.expect.md => error.rules-of-hooks-62bded832974.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-40.js => error.rules-of-hooks-62bded832974.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-32.expect.md => error.rules-of-hooks-70d37bc6dabc.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-32.js => error.rules-of-hooks-70d37bc6dabc.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-58.expect.md => error.rules-of-hooks-92708a08b920.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-58.js => error.rules-of-hooks-92708a08b920.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-59.expect.md => error.rules-of-hooks-99ca80f8b0b6.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-59.js => error.rules-of-hooks-99ca80f8b0b6.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-51.expect.md => error.rules-of-hooks-baf61a179e4c.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-51.js => error.rules-of-hooks-baf61a179e4c.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-47.expect.md => error.rules-of-hooks-bfa72d1b8135.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-47.js => error.rules-of-hooks-bfa72d1b8135.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-38.expect.md => error.rules-of-hooks-e70a6f5d6d4b.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-38.js => error.rules-of-hooks-e70a6f5d6d4b.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-57.expect.md => error.rules-of-hooks-ec94ef9d80df.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-57.js => error.rules-of-hooks-ec94ef9d80df.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-56.expect.md => error.rules-of-hooks-fc7007852fe0.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{error.rules-of-hooks-56.js => error.rules-of-hooks-fc7007852fe0.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-23.expect.md => rules-of-hooks-0592bd574811.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-23.js => rules-of-hooks-0592bd574811.js} (100%) create mode 100644 compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.expect.md rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-27.js => rules-of-hooks-0e2214abc294.js} (93%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-0.expect.md => rules-of-hooks-1ff6c3fbbc94.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-0.js => rules-of-hooks-1ff6c3fbbc94.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-13.expect.md => rules-of-hooks-23dc7fffde57.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-13.js => rules-of-hooks-23dc7fffde57.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-11.expect.md => rules-of-hooks-2bec02ac982b.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-11.js => rules-of-hooks-2bec02ac982b.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-12.expect.md => rules-of-hooks-2e405c78cb80.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-12.js => rules-of-hooks-2e405c78cb80.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-3.expect.md => rules-of-hooks-33a6e23edac1.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-3.js => rules-of-hooks-33a6e23edac1.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-5.expect.md => rules-of-hooks-347b0dae66f1.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-5.js => rules-of-hooks-347b0dae66f1.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-7.expect.md => rules-of-hooks-485bf041f55f.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-7.js => rules-of-hooks-485bf041f55f.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-8.expect.md => rules-of-hooks-4f6c78a14bf7.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-8.js => rules-of-hooks-4f6c78a14bf7.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-4.expect.md => rules-of-hooks-7e52f5eec669.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-4.js => rules-of-hooks-7e52f5eec669.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-2.expect.md => rules-of-hooks-844a496db20b.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-2.js => rules-of-hooks-844a496db20b.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-1.expect.md => rules-of-hooks-8f1c2c3f71c9.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-1.js => rules-of-hooks-8f1c2c3f71c9.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-16.expect.md => rules-of-hooks-9a47e97b5d13.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-16.js => rules-of-hooks-9a47e97b5d13.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-14.expect.md => rules-of-hooks-9d7879272ff6.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-14.js => rules-of-hooks-9d7879272ff6.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-29.expect.md => rules-of-hooks-c1e8c7f4c191.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-29.js => rules-of-hooks-c1e8c7f4c191.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-10.expect.md => rules-of-hooks-cfdfe5572fc7.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-10.js => rules-of-hooks-cfdfe5572fc7.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-22.expect.md => rules-of-hooks-df4d750736f3.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-22.js => rules-of-hooks-df4d750736f3.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-20.expect.md => rules-of-hooks-dfde14171fcd.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-20.js => rules-of-hooks-dfde14171fcd.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-6.expect.md => rules-of-hooks-e5dd6caf4084.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-6.js => rules-of-hooks-e5dd6caf4084.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-17.expect.md => rules-of-hooks-e66a744cffbe.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-17.js => rules-of-hooks-e66a744cffbe.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-19.expect.md => rules-of-hooks-eacfcaa6ef89.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-19.js => rules-of-hooks-eacfcaa6ef89.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-25.expect.md => rules-of-hooks-fe6042f7628b.expect.md} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{rules-of-hooks-25.js => rules-of-hooks-fe6042f7628b.js} (100%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-65.js => todo.error.rules-of-hooks-0a42415d4990.js} (85%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-48.js => todo.error.rules-of-hooks-112dd48477e6.js} (85%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-45.js => todo.error.rules-of-hooks-1a1e29f21a79.js} (86%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-63.js => todo.error.rules-of-hooks-251e67613de1.js} (88%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-46.js => todo.error.rules-of-hooks-310a4e022130.js} (88%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-49.js => todo.error.rules-of-hooks-3d8726664cf7.js} (91%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-68.js => todo.error.rules-of-hooks-42576e5c5613.js} (80%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-50.js => todo.error.rules-of-hooks-429b3b1a8ee4.js} (84%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-36.js => todo.error.rules-of-hooks-4d1a9ed4d44a.js} (85%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-41.js => todo.error.rules-of-hooks-52cd6055b4fb.js} (87%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-37.js => todo.error.rules-of-hooks-60e23f3caf5b.js} (87%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-71.js => todo.error.rules-of-hooks-7451860cd46f.js} (62%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-33.js => todo.error.rules-of-hooks-7bcc5c5c0416.js} (73%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-66.js => todo.error.rules-of-hooks-880ce4a7e686.js} (91%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-39.js => todo.error.rules-of-hooks-92503f581023.js} (87%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-42.js => todo.error.rules-of-hooks-b4af90990150.js} (89%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-72.js => todo.error.rules-of-hooks-be9bff592ca0.js} (63%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-34.js => todo.error.rules-of-hooks-c0069d062d50.js} (68%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-67.js => todo.error.rules-of-hooks-c277f25e7c03.js} (93%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-64.js => todo.error.rules-of-hooks-cdcb36730551.js} (87%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-69.js => todo.error.rules-of-hooks-de96bb13ad47.js} (75%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-70.js => todo.error.rules-of-hooks-e803203d651b.js} (65%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-35.js => todo.error.rules-of-hooks-f486864c4bec.js} (87%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.error.rules-of-hooks-73.js => todo.error.rules-of-hooks-fbe12b5ccfce.js} (60%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-21.js => todo.rules-of-hooks-279ac76f53af.js} (84%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-62.js => todo.rules-of-hooks-27c18dc8dad2.js} (92%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-18.js => todo.rules-of-hooks-28a78701970c.js} (90%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-43.js => todo.rules-of-hooks-3d692676194b.js} (93%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-30.js => todo.rules-of-hooks-6949b255e7eb.js} (99%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-31.js => todo.rules-of-hooks-69521d94fa03.js} (93%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-44.js => todo.rules-of-hooks-8503ca76d6f8.js} (93%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-28.js => todo.rules-of-hooks-93dc5d5e538a.js} (92%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-24.js => todo.rules-of-hooks-d0935abedc42.js} (90%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-61.js => todo.rules-of-hooks-dba5889e4ba6.js} (91%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-9.js => todo.rules-of-hooks-e0a5db3ae21e.js} (95%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-60.js => todo.rules-of-hooks-e29c874aa913.js} (89%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-15.js => todo.rules-of-hooks-e9f9bac89f8f.js} (91%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-26.js => todo.rules-of-hooks-f7b5986699ca.js} (86%) rename compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/{todo.rules-of-hooks-55.js => todo.rules-of-hooks-fadd52c1e460.js} (96%) diff --git a/compiler/forget/scripts/build-react-hooks-fixures.js b/compiler/forget/scripts/build-react-hooks-fixures.js index 04c238278a..3ec9cd4a06 100644 --- a/compiler/forget/scripts/build-react-hooks-fixures.js +++ b/compiler/forget/scripts/build-react-hooks-fixures.js @@ -16,6 +16,8 @@ const path = require("path"); const prettier = require("prettier"); const prettierConfigPath = require.resolve("../.prettierrc"); const process = require("process"); +const { createHash } = require("crypto"); +const { create } = require("domain"); const FIXTURES_DIR = path.join( process.cwd(), @@ -26,6 +28,10 @@ const FIXTURES_DIR = path.join( "rules-of-hooks" ); +const PRETTIER_OPTIONS = prettier.resolveConfig.sync(FIXTURES_DIR, { + config: prettierConfigPath, +}); + const fixtures = []; for (const test of tests.valid) { fixtures.push({ code: test.code, valid: true }); @@ -34,7 +40,6 @@ for (const test of tests.invalid) { fixtures.push({ code: test.code, valid: false }); } -let index = 0; for (const fixture of fixtures) { let error = null; let passes = true; @@ -63,29 +68,29 @@ for (const fixture of fixtures) { } catch (e) { error = e; } - let name = `rules-of-hooks-${index}.js`; let code = fixture.code; + let prefix = ""; if (error !== null) { - name = `todo.${name}`; - code = `// @skip\n${code}`; + prefix = `todo.`; + code = `// @skip\n// Unsupported input\n${code}`; } else if (fixture.valid === false) { - name = `error.${name}`; + prefix = `error.`; if (passes) { // oops, passed when we expected an error - name = `todo.${name}`; - code = `// @skip\n${code}`; + prefix = `todo.error.`; + code = `// @skip\n// Passed but should have errored\n${code}`; } } else if (!passes) { // oops, error when it should have passed - name = `todo.${name}`; - code = `// @skip\n${code}`; + prefix = `todo.`; + code = `// @skip\n// Failed but should have passed\n${code}`; } - + const formatted = prettier.format(code, PRETTIER_OPTIONS); + const hmac = createHash("sha256"); + hmac.update(formatted, "utf8"); + let name = `${prefix}rules-of-hooks-${hmac + .digest("hex") + .substring(0, 12)}.js`; const fixturePath = path.join(FIXTURES_DIR, name); - const options = prettier.resolveConfig.sync(fixturePath, { - config: prettierConfigPath, - }); - const formatted = prettier.format(code, options); fs.writeFileSync(fixturePath, formatted, "utf8"); - index++; } diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-52.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-1dd104f3e579.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-52.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-1dd104f3e579.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-52.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-1dd104f3e579.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-52.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-1dd104f3e579.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-53.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-2e9963324591.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-53.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-2e9963324591.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-53.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-2e9963324591.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-53.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-2e9963324591.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-54.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-3d95dc7a5f98.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-54.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-3d95dc7a5f98.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-54.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-3d95dc7a5f98.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-54.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-3d95dc7a5f98.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-40.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-62bded832974.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-40.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-62bded832974.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-40.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-62bded832974.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-40.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-62bded832974.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-32.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-70d37bc6dabc.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-32.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-70d37bc6dabc.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-32.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-70d37bc6dabc.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-32.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-70d37bc6dabc.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-58.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-92708a08b920.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-58.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-92708a08b920.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-58.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-92708a08b920.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-58.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-92708a08b920.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-59.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-99ca80f8b0b6.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-59.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-99ca80f8b0b6.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-59.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-99ca80f8b0b6.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-59.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-99ca80f8b0b6.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-51.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-baf61a179e4c.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-51.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-baf61a179e4c.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-51.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-baf61a179e4c.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-51.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-baf61a179e4c.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-47.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-bfa72d1b8135.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-47.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-bfa72d1b8135.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-47.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-bfa72d1b8135.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-47.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-bfa72d1b8135.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-38.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-e70a6f5d6d4b.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-38.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-e70a6f5d6d4b.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-38.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-e70a6f5d6d4b.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-38.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-e70a6f5d6d4b.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-57.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-ec94ef9d80df.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-57.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-ec94ef9d80df.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-57.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-ec94ef9d80df.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-57.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-ec94ef9d80df.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-56.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-fc7007852fe0.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-56.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-fc7007852fe0.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-56.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-fc7007852fe0.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-56.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/error.rules-of-hooks-fc7007852fe0.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0592bd574811.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0592bd574811.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0592bd574811.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0592bd574811.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.expect.md new file mode 100644 index 0000000000..4eadd3060d --- /dev/null +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.expect.md @@ -0,0 +1,28 @@ + +## Input + +```javascript +// Valid because exceptions abort rendering +function RegressionTest() { + if (page == null) { + throw new Error("oh no!"); + } + useState(); +} + +``` + +## Code + +```javascript +// Valid because exceptions abort rendering +function RegressionTest() { + if (page == null) { + throw new Error("oh no!"); + } + + useState(); +} + +``` + \ No newline at end of file diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.js similarity index 93% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.js index f6abe0def9..d39acb9fb8 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0e2214abc294.js @@ -1,5 +1,3 @@ -// @skip - // Valid because exceptions abort rendering function RegressionTest() { if (page == null) { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1ff6c3fbbc94.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1ff6c3fbbc94.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1ff6c3fbbc94.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-0.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1ff6c3fbbc94.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-13.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23dc7fffde57.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-13.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23dc7fffde57.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-13.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23dc7fffde57.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-13.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-23dc7fffde57.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-11.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2bec02ac982b.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-11.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2bec02ac982b.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-11.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2bec02ac982b.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-11.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2bec02ac982b.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-12.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2e405c78cb80.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-12.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2e405c78cb80.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-12.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2e405c78cb80.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-12.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2e405c78cb80.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-3.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-33a6e23edac1.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-3.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-33a6e23edac1.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-3.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-33a6e23edac1.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-3.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-33a6e23edac1.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-5.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-347b0dae66f1.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-5.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-347b0dae66f1.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-5.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-347b0dae66f1.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-5.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-347b0dae66f1.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-485bf041f55f.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-485bf041f55f.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-485bf041f55f.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-485bf041f55f.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4f6c78a14bf7.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4f6c78a14bf7.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4f6c78a14bf7.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4f6c78a14bf7.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7e52f5eec669.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7e52f5eec669.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7e52f5eec669.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-4.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-7e52f5eec669.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-844a496db20b.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-844a496db20b.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-844a496db20b.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-2.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-844a496db20b.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8f1c2c3f71c9.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8f1c2c3f71c9.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8f1c2c3f71c9.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-1.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-8f1c2c3f71c9.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-16.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9a47e97b5d13.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-16.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9a47e97b5d13.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-16.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9a47e97b5d13.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-16.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9a47e97b5d13.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-14.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9d7879272ff6.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-14.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9d7879272ff6.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-14.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9d7879272ff6.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-14.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-9d7879272ff6.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-29.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-c1e8c7f4c191.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-29.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-c1e8c7f4c191.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-29.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-c1e8c7f4c191.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-29.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-c1e8c7f4c191.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-10.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-cfdfe5572fc7.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-10.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-cfdfe5572fc7.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-10.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-cfdfe5572fc7.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-10.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-cfdfe5572fc7.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-22.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-df4d750736f3.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-22.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-df4d750736f3.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-22.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-df4d750736f3.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-22.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-df4d750736f3.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-20.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-dfde14171fcd.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-20.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-dfde14171fcd.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-20.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-dfde14171fcd.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-20.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-dfde14171fcd.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-6.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e5dd6caf4084.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-6.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e5dd6caf4084.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-6.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e5dd6caf4084.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-6.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e5dd6caf4084.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-17.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e66a744cffbe.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-17.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e66a744cffbe.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-17.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e66a744cffbe.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-17.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-e66a744cffbe.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-19.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-eacfcaa6ef89.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-19.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-eacfcaa6ef89.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-19.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-eacfcaa6ef89.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-19.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-eacfcaa6ef89.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-25.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-fe6042f7628b.expect.md similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-25.expect.md rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-fe6042f7628b.expect.md diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-25.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-fe6042f7628b.js similarity index 100% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-25.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/rules-of-hooks-fe6042f7628b.js diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-65.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-0a42415d4990.js similarity index 85% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-65.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-0a42415d4990.js index b647cb6968..2f54ab19f4 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-65.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-0a42415d4990.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // This is invalid because "use"-prefixed functions used in named // functions are assumed to be hooks. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-48.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-112dd48477e6.js similarity index 85% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-48.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-112dd48477e6.js index d6a0168af5..103fec8710 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-48.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-112dd48477e6.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-45.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-1a1e29f21a79.js similarity index 86% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-45.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-1a1e29f21a79.js index dece00303c..a756e94334 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-45.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-1a1e29f21a79.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-63.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-251e67613de1.js similarity index 88% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-63.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-251e67613de1.js index 140359e3f5..95ae96505f 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-63.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-251e67613de1.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-46.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-310a4e022130.js similarity index 88% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-46.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-310a4e022130.js index 5bc696cdd9..607fdcdcd4 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-46.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-310a4e022130.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-49.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-3d8726664cf7.js similarity index 91% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-49.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-3d8726664cf7.js index 04ecc3564a..c558687960 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-49.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-3d8726664cf7.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Currently invalid because it violates the convention and removes the "taint" // from a hook. We *could* make it valid to avoid some false positives but let's diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-68.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42576e5c5613.js similarity index 80% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-68.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42576e5c5613.js index 861a9bb241..ae8b5dce97 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-68.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42576e5c5613.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored class ClassComponentWithFeatureFlag extends React.Component { render() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-50.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-429b3b1a8ee4.js similarity index 84% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-50.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-429b3b1a8ee4.js index a2e4bdbb21..71c7a4c203 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-50.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-429b3b1a8ee4.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // These are neither functions nor hooks. function _normalFunctionWithHook() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-36.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-4d1a9ed4d44a.js similarity index 85% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-36.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-4d1a9ed4d44a.js index 5084191574..5a1d6c4249 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-36.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-4d1a9ed4d44a.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-41.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-52cd6055b4fb.js similarity index 87% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-41.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-52cd6055b4fb.js index a9ac98472a..bf85f21da1 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-41.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-52cd6055b4fb.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-37.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-60e23f3caf5b.js similarity index 87% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-37.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-60e23f3caf5b.js index 2296852857..4e668a3288 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-37.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-60e23f3caf5b.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-71.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7451860cd46f.js similarity index 62% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-71.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7451860cd46f.js index 17ade6f71f..ffb6a73806 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-71.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7451860cd46f.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored (class { useHook() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-33.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7bcc5c5c0416.js similarity index 73% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-33.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7bcc5c5c0416.js index 72db4e9ff4..dd319f315a 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-33.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-7bcc5c5c0416.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored Hook.useState(); Hook._useState(); diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-66.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-880ce4a7e686.js similarity index 91% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-66.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-880ce4a7e686.js index e60fc3c5ec..6d5a4b3d5f 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-66.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-880ce4a7e686.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous. // Normally, this would crash, but not if you use inline requires. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-39.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-92503f581023.js similarity index 87% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-39.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-92503f581023.js index 5e2b4ddb20..cac67930c7 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-39.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-92503f581023.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-b4af90990150.js similarity index 89% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-b4af90990150.js index 5cdab930c1..b841b31af9 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-42.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-b4af90990150.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-72.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-be9bff592ca0.js similarity index 63% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-72.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-be9bff592ca0.js index 54cd765991..4b5b4645ea 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-72.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-be9bff592ca0.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored (class { h = () => { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-34.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c0069d062d50.js similarity index 68% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-34.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c0069d062d50.js index 7980cffb35..f7a35bc33f 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-34.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c0069d062d50.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored class C { m() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-67.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c277f25e7c03.js similarity index 93% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-67.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c277f25e7c03.js index 175e9631a2..5f759e3aaa 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-67.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-c277f25e7c03.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Technically this is a false positive. // We *could* make it valid (and it used to be). diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-64.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-cdcb36730551.js similarity index 87% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-64.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-cdcb36730551.js index a257479288..26747b6a81 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-64.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-cdcb36730551.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-69.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-de96bb13ad47.js similarity index 75% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-69.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-de96bb13ad47.js index 59b5f2eeee..832df17120 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-69.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-de96bb13ad47.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored class ClassComponentWithHook extends React.Component { render() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-70.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-e803203d651b.js similarity index 65% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-70.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-e803203d651b.js index d0217a5ab2..95cccc4bdd 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-70.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-e803203d651b.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored (class { useHook = () => { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-35.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-f486864c4bec.js similarity index 87% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-35.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-f486864c4bec.js index 92b575101f..ed58c3837c 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-35.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-f486864c4bec.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored // This is a false positive (it's valid) that unfortunately // we cannot avoid. Prefer to rename it to not start with "use" diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-73.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-fbe12b5ccfce.js similarity index 60% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-73.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-fbe12b5ccfce.js index 3500c604ff..d20cef5ff7 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-73.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.error.rules-of-hooks-fbe12b5ccfce.js @@ -1,4 +1,5 @@ // @skip +// Passed but should have errored (class { i() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-21.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-279ac76f53af.js similarity index 84% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-21.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-279ac76f53af.js index 6b10b05404..21d1a7d252 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-21.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-279ac76f53af.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid -- this is a regression test. jest.useFakeTimers(); diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-62.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27c18dc8dad2.js similarity index 92% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-62.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27c18dc8dad2.js index c264c2004d..160f419f68 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-62.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-27c18dc8dad2.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-18.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28a78701970c.js similarity index 90% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-18.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28a78701970c.js index 5f846ae822..1e4ee1bc58 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-18.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28a78701970c.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because hooks can be used in anonymous function arguments to // React.memo. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-43.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-3d692676194b.js similarity index 93% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-43.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-3d692676194b.js index 0a752f5046..4dfe703095 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-43.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-3d692676194b.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-30.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-6949b255e7eb.js similarity index 99% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-30.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-6949b255e7eb.js index d057227239..d2523911c3 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-30.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-6949b255e7eb.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because the neither the conditions before or after the hook affect the hook call // Failed prior to implementing BigInt because pathsFromStartToEnd and allPathsFromStartToEnd were too big and had rounding errors diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-31.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-69521d94fa03.js similarity index 93% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-31.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-69521d94fa03.js index bffc90fb13..04807ff382 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-31.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-69521d94fa03.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because the neither the condition nor the loop affect the hook call. function App(props) { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-44.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-8503ca76d6f8.js similarity index 93% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-44.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-8503ca76d6f8.js index 86c29955db..a6fe9f01f4 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-44.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-8503ca76d6f8.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Invalid because it's a common misunderstanding. // We *could* make it valid but the runtime error could be confusing. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-93dc5d5e538a.js similarity index 92% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-93dc5d5e538a.js index 3a901a444f..c13137a347 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-28.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-93dc5d5e538a.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because the loop doesn't change the order of hooks calls. function RegressionTest() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-24.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-d0935abedc42.js similarity index 90% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-24.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-d0935abedc42.js index cd0c2ebf91..0c442c7502 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-24.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-d0935abedc42.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // This is valid because "use"-prefixed functions called in // unnamed function arguments are not assumed to be hooks. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-61.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-dba5889e4ba6.js similarity index 91% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-61.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-dba5889e4ba6.js index f808814329..d508312278 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-61.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-dba5889e4ba6.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-9.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e0a5db3ae21e.js similarity index 95% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-9.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e0a5db3ae21e.js index c43ac4caae..b822679960 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-9.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e0a5db3ae21e.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because hooks can call hooks. function useHook() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-60.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e29c874aa913.js similarity index 89% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-60.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e29c874aa913.js index 8f9bb521aa..4ac2347923 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-60.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e29c874aa913.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Invalid because it's dangerous and might not warn otherwise. // This *must* be invalid. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-15.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e9f9bac89f8f.js similarity index 91% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-15.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e9f9bac89f8f.js index 05d81522d1..538de2970a 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-15.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-e9f9bac89f8f.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Valid because hooks can be used in anonymous arrow-function arguments // to forwardRef. diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-26.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-f7b5986699ca.js similarity index 86% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-26.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-f7b5986699ca.js index cd3f938a37..f7b4e3b922 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-26.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-f7b5986699ca.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Regression test for incorrectly flagged valid code. function RegressionTest() { diff --git a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-55.js b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-fadd52c1e460.js similarity index 96% rename from compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-55.js rename to compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-fadd52c1e460.js index f255fcd47b..1dc8f5971c 100644 --- a/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-55.js +++ b/compiler/forget/src/__tests__/fixtures/compiler/rules-of-hooks/todo.rules-of-hooks-fadd52c1e460.js @@ -1,4 +1,5 @@ // @skip +// Unsupported input // Currently invalid. // These are variations capturing the current heuristic--