Skip to content

Commit

Permalink
Enable Stepper for Typed Variant (#2766)
Browse files Browse the repository at this point in the history
* Enable Stepper for Typed Variant

* Fix format

* Modify CI tests, enabling Stepper tool for Typed Variant

---------

Co-authored-by: Richard Dominick <[email protected]>
  • Loading branch information
Zenkoh1 and RichDom2185 authored Feb 9, 2024
1 parent 8ca7571 commit 60381e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/commons/application/ApplicationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ export const sourceLanguages: SALanguage[] = sourceSubLanguages.map(sublang => {

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

// Enable Env Visualizer for Source Chapter 3 and above
supportedFeatures.envVisualizer =
Expand Down
8 changes: 6 additions & 2 deletions src/commons/application/__tests__/ApplicationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('available Source language configurations', () => {
const expectedSourceConfigs = [
// Source 1
{ chapter: Chapter.SOURCE_1, variant: Variant.DEFAULT, supports: { substVisualizer: true } },
{ chapter: Chapter.SOURCE_1, variant: Variant.TYPED },
{ chapter: Chapter.SOURCE_1, variant: Variant.TYPED, supports: { substVisualizer: true } },
{ chapter: Chapter.SOURCE_1, variant: Variant.WASM },
{ chapter: Chapter.SOURCE_1, variant: Variant.LAZY },
{ chapter: Chapter.SOURCE_1, variant: Variant.NATIVE, supports: { substVisualizer: true } },
Expand All @@ -35,7 +35,11 @@ describe('available Source language configurations', () => {
variant: Variant.DEFAULT,
supports: { dataVisualizer: true, substVisualizer: true }
},
{ chapter: Chapter.SOURCE_2, variant: Variant.TYPED, supports: { dataVisualizer: true } },
{
chapter: Chapter.SOURCE_2,
variant: Variant.TYPED,
supports: { dataVisualizer: true, substVisualizer: true }
},
{ chapter: Chapter.SOURCE_2, variant: Variant.LAZY, supports: { dataVisualizer: true } },
{
chapter: Chapter.SOURCE_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Array [
"envVisualizer": false,
"multiFile": false,
"repl": true,
"substVisualizer": false,
"substVisualizer": true,
},
"variant": "typed",
},
Expand Down Expand Up @@ -153,7 +153,7 @@ Array [
"envVisualizer": false,
"multiFile": true,
"repl": true,
"substVisualizer": false,
"substVisualizer": true,
},
"variant": "typed",
},
Expand Down

0 comments on commit 60381e0

Please sign in to comment.