Skip to content

Commit 60381e0

Browse files
Zenkoh1RichDom2185
andauthored
Enable Stepper for Typed Variant (#2766)
* Enable Stepper for Typed Variant * Fix format * Modify CI tests, enabling Stepper tool for Typed Variant --------- Co-authored-by: Richard Dominick <[email protected]>
1 parent 8ca7571 commit 60381e0

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/commons/application/ApplicationTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ export const sourceLanguages: SALanguage[] = sourceSubLanguages.map(sublang => {
232232

233233
// Enable Subst Visualizer only for default Source 1 & 2
234234
supportedFeatures.substVisualizer =
235-
chapter <= Chapter.SOURCE_2 && (variant === Variant.DEFAULT || variant === Variant.NATIVE);
235+
chapter <= Chapter.SOURCE_2 &&
236+
(variant === Variant.DEFAULT || variant === Variant.NATIVE || variant === Variant.TYPED);
236237

237238
// Enable Env Visualizer for Source Chapter 3 and above
238239
supportedFeatures.envVisualizer =

src/commons/application/__tests__/ApplicationTypes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('available Source language configurations', () => {
2525
const expectedSourceConfigs = [
2626
// Source 1
2727
{ chapter: Chapter.SOURCE_1, variant: Variant.DEFAULT, supports: { substVisualizer: true } },
28-
{ chapter: Chapter.SOURCE_1, variant: Variant.TYPED },
28+
{ chapter: Chapter.SOURCE_1, variant: Variant.TYPED, supports: { substVisualizer: true } },
2929
{ chapter: Chapter.SOURCE_1, variant: Variant.WASM },
3030
{ chapter: Chapter.SOURCE_1, variant: Variant.LAZY },
3131
{ chapter: Chapter.SOURCE_1, variant: Variant.NATIVE, supports: { substVisualizer: true } },
@@ -35,7 +35,11 @@ describe('available Source language configurations', () => {
3535
variant: Variant.DEFAULT,
3636
supports: { dataVisualizer: true, substVisualizer: true }
3737
},
38-
{ chapter: Chapter.SOURCE_2, variant: Variant.TYPED, supports: { dataVisualizer: true } },
38+
{
39+
chapter: Chapter.SOURCE_2,
40+
variant: Variant.TYPED,
41+
supports: { dataVisualizer: true, substVisualizer: true }
42+
},
3943
{ chapter: Chapter.SOURCE_2, variant: Variant.LAZY, supports: { dataVisualizer: true } },
4044
{
4145
chapter: Chapter.SOURCE_2,

src/commons/application/__tests__/__snapshots__/ApplicationTypes.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Array [
8888
"envVisualizer": false,
8989
"multiFile": false,
9090
"repl": true,
91-
"substVisualizer": false,
91+
"substVisualizer": true,
9292
},
9393
"variant": "typed",
9494
},
@@ -153,7 +153,7 @@ Array [
153153
"envVisualizer": false,
154154
"multiFile": true,
155155
"repl": true,
156-
"substVisualizer": false,
156+
"substVisualizer": true,
157157
},
158158
"variant": "typed",
159159
},

0 commit comments

Comments
 (0)