Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update curriculum helpers to latest versions in test runner #1345

Merged
merged 3 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions e2e/learn.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const nonEditorSB = [
SuperBlocks.CollegeAlgebraPy,
SuperBlocks.A2English,
SuperBlocks.B1English,
SuperBlocks.TheOdinProject
];

const publicSB = orderedSuperBlockInfo
Expand Down
4 changes: 2 additions & 2 deletions mobile-app/lib/ui/views/learn/test_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class TestRunner extends BaseViewModel {
String tail = challenge.files[0].tail ?? '';

return '''<script type="module">
import * as __helpers from "https://www.unpkg.com/@freecodecamp/curriculum-helpers@2.0.3/dist/index.mjs";
import * as __helpers from "https://www.unpkg.com/@freecodecamp/curriculum-helpers@3.9.0/dist/index.mjs";

const code = `$code`;
const doc = new DOMParser().parseFromString(code, 'text/html');
Expand Down Expand Up @@ -252,7 +252,7 @@ class TestRunner extends BaseViewModel {
String? tail = (challenge.files[0].tail ?? '').replaceAll('\\', '\\\\');

return '''<script type="module">
import * as __helpers from "https://unpkg.com/@freecodecamp/curriculum-helpers@1.1.0/dist/index.js";
import * as __helpers from "https://unpkg.com/@freecodecamp/curriculum-helpers@3.0.9/dist/index.js";

const assert = chai.assert;
const __checkForBrowserExtensions = false;
Expand Down
Loading