Skip to content

Commit

Permalink
Adjust data.internal extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Feb 27, 2024
1 parent a22b7a2 commit a49fcb8
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 96 deletions.
4 changes: 2 additions & 2 deletions new-packages/ts-project/__tests__/extraction/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ test('should extract a transition action', async () => {
"type": "named",
},
"guard": undefined,
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-0",
Expand Down Expand Up @@ -956,7 +956,7 @@ test('should not register multiple transition actions with duplicated actions pr
"type": "named",
},
"guard": undefined,
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-0",
Expand Down
24 changes: 12 additions & 12 deletions new-packages/ts-project/__tests__/extraction/guards.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('should extract guard from transition (string)', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -192,7 +192,7 @@ test('should extract guard (inline)', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -331,7 +331,7 @@ test('should extract parameterized guards', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -468,7 +468,7 @@ test('should extract higher order guards as inline', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -640,7 +640,7 @@ test('should extract multiple guards', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand All @@ -659,7 +659,7 @@ test('should extract multiple guards', async () => {
"type": "named",
},
"guard": "block-1",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-2",
Expand All @@ -678,7 +678,7 @@ test('should extract multiple guards', async () => {
"type": "named",
},
"guard": "block-2",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-3",
Expand Down Expand Up @@ -842,7 +842,7 @@ test('should support XState v4 guard', async () => {
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -980,7 +980,7 @@ test('should raise error if both guard and cond are provided, pick guard over co
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -1122,7 +1122,7 @@ test('should raise error if both guard and cond are provided, pick guard over co
"type": "named",
},
"guard": "block-0",
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -1252,7 +1252,7 @@ test('should raise error for parameterized guard is missing type property', asyn
"type": "named",
},
"guard": undefined,
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down Expand Up @@ -1378,7 +1378,7 @@ test('should raise error for parameterized guard with invalid type property', as
"type": "named",
},
"guard": undefined,
"internal": true,
"internal": undefined,
"metaEntries": [],
},
"source": "state-1",
Expand Down
Loading

0 comments on commit a49fcb8

Please sign in to comment.