repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-base-meta.ts
tools/challenge-helper-scripts/helpers/get-base-meta.ts
interface Meta { name: string; isUpcomingChange: boolean; dashedName: string; helpCategory: string; challengeOrder: Array<{ id: string; title: string; }>; usesMultifileEditor?: boolean; hasEditableBoundaries?: boolean; blockLabel?: string; blockLayout?: string; order?: number; } const bas...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/utils.ts
tools/challenge-helper-scripts/helpers/utils.ts
export function insertInto<T>(arr: T[], index: number, elem: T): T[] { if (index >= arr.length) return [...arr, elem]; if (index <= 0) return [elem, ...arr]; return arr.flatMap((x, id) => { return id === index ? [elem, x] : x; }); } // fs Promise functions return errors, but no stack trace. This adds bac...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/task-helpers.ts
tools/challenge-helper-scripts/helpers/task-helpers.ts
function isTaskChallenge(title: string): boolean { return /^\s*task\s\d+$/gi.test(title); } function getTaskNumberFromTitle(title: string): number { return parseInt(title.replace(/\D/g, ''), 10); } export { getTaskNumberFromTitle, isTaskChallenge };
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/parse-json.ts
tools/challenge-helper-scripts/helpers/parse-json.ts
import fs from 'fs/promises'; import { SuperBlocks } from '../../../shared-dist/config/curriculum.js'; import { withTrace } from './utils.js'; export type BlockInfo = { title: string; intro: string[]; }; export type SuperBlockInfo = { blocks: Record<string, BlockInfo>; }; export type IntroJson = Record<SuperB...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/create-intro.ts
tools/challenge-helper-scripts/helpers/create-intro.ts
import path from 'node:path'; import fs from 'node:fs/promises'; function introTemplate( superBlock: string, block: string, title: string ): string { return `--- title: Introduction to the ${title} block: ${block} superBlock: ${superBlock} --- ## Introduction to the ${title} This page is for the ${title} `; ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-arg-value.test.ts
tools/challenge-helper-scripts/helpers/get-arg-value.test.ts
import { describe, it, expect } from 'vitest'; import { getArgValue } from './get-arg-value.js'; describe('getArgValue helper', () => { it('should throw if there no arguments', () => { const args = ['/Path/to/node', '/Path/to/script']; expect(() => getArgValue(args)).toThrow('only one argument allowed'); }...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-project-info.ts
tools/challenge-helper-scripts/helpers/get-project-info.ts
export function getProjectPath(): string { return (process.env.CALLING_DIR || process.cwd()) + '/'; } export function getProjectName(): string { return getProjectPath().split('/').slice(-2)[0]; }
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/insert-erms.ts
tools/challenge-helper-scripts/helpers/insert-erms.ts
// Update given value with markers (labels) const insertErms = (seedCode: string, erms: number[]): string => { if (!erms || erms.length <= 1) { throw Error('erms should be provided'); } if (erms.length <= 1) { throw Error('erms should contain 2 elements'); } const separator = '\n'; const lines = s...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-step-template.test.ts
tools/challenge-helper-scripts/helpers/get-step-template.test.ts
import { describe, it, expect } from 'vitest'; import { ObjectId } from 'bson'; import { getStepTemplate } from './get-step-template.js'; const props = { challengeId: new ObjectId('60d4ebe4801158d1abe1b18f'), challengeSeeds: [ { contents: '', editableRegionBoundaries: [0, 2], ext: 'html', ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/create-project.ts
tools/challenge-helper-scripts/helpers/create-project.ts
// TODO: this belongs in create-project, but we can't test that (since it uses // prettier) until we migrate to vitest import { getSuperblockStructure, writeSuperblockStructure } from '../../../curriculum/src/file-handler.js'; import { insertInto } from './utils.js'; export async function updateSimpleSuperblockStr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-last-step-file-number.ts
tools/challenge-helper-scripts/helpers/get-last-step-file-number.ts
import { last } from 'lodash'; import { getMetaData } from './project-metadata.js'; function getLastStep(): { stepNum: number } { const meta = getMetaData(); const challengeOrder = meta.challengeOrder; const step = last(challengeOrder); if (!step) throw new Error('No steps found'); return { stepNum: challen...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/utils.test.ts
tools/challenge-helper-scripts/helpers/utils.test.ts
import { describe, it, expect } from 'vitest'; import { insertInto } from './utils.js'; describe('insertInto', () => { it('should not modify the original array', () => { const arr = [1, 2, 3]; const result = insertInto(arr, 1, 99); expect(arr).toEqual([1, 2, 3]); expect(result).not.toBe(arr); }); ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-file-name.test.ts
tools/challenge-helper-scripts/helpers/get-file-name.test.ts
import fs from 'fs'; import { join } from 'path'; import { describe, it, expect, beforeEach, afterEach } from 'vitest'; import { getFileName } from './get-file-name.js'; const basePath = join(process.cwd(), '__fixtures__'); const commonPath = join(basePath, 'curriculum', 'challenges'); const block = 'project-get-fil...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-arg-value.ts
tools/challenge-helper-scripts/helpers/get-arg-value.ts
const isIntRE = /^\d+$/; function getArgValue(argv: string[] = []): number { if (argv.length !== 3) throw Error('only one argument allowed'); const value = argv[2]; const intValue = parseInt(value, 10); if (!isIntRE.test(value) || !Number.isInteger(intValue)) throw Error('argument must be an integer'); re...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts
tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts
import { prompt } from 'inquirer'; import { challengeTypes } from '../../../shared-dist/config/challenge-types.js'; import { getLastStep } from './get-last-step-file-number.js'; export const newChallengePrompts = async (): Promise<{ title: string; dashedName: string; challengeType: string; }> => { const challe...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-project-info.test.ts
tools/challenge-helper-scripts/helpers/get-project-info.test.ts
import { describe, it, expect } from 'vitest'; import { getProjectName, getProjectPath } from './get-project-info.js'; describe('getProjectPath helper', () => { it('should return the calling dir path', () => { const mockCallingDir = 'calling/dir'; const expected = `${mockCallingDir}/`; // Add mock to te...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-step-template.ts
tools/challenge-helper-scripts/helpers/get-step-template.ts
import { ObjectId } from 'bson'; import { insertErms } from './insert-erms.js'; // Builds a block function getCodeBlock(label: string, content?: string) { return `\`\`\`${label} ${typeof content !== 'undefined' ? content : ''} \`\`\`\n`; } // Builds a section function getSeedSection(content: string, label: string) ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-challenge-template.ts
tools/challenge-helper-scripts/helpers/get-challenge-template.ts
import { ObjectId } from 'bson'; const sanitizeTitle = (title: string) => { return title.includes(':') || title.includes("'") ? `"${title}"` : title; }; interface ChallengeOptions { challengeId: ObjectId; title: string; dashedName: string; challengeType: string; questionCount?: number; challengeLang?: s...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/insert-erms.test.ts
tools/challenge-helper-scripts/helpers/insert-erms.test.ts
import { describe, it, expect } from 'vitest'; import { insertErms } from './insert-erms.js'; describe('insertErms helper', () => { const code = `<h1>Hello World</h1> <main> <h2>CatPhotoApp</h2> <img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."> <p>Kitty ipsum dolor sit amet, ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/get-file-name.ts
tools/challenge-helper-scripts/helpers/get-file-name.ts
import { readdir } from 'fs/promises'; import matter from 'gray-matter'; import { getProjectPath } from './get-project-info.js'; export const getFileName = async (id: string): Promise<string | null> => { const path = getProjectPath(); const files = await readdir(path); for (const file of files) { if (!file.e...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-helper-scripts/helpers/project-metadata.test.ts
tools/challenge-helper-scripts/helpers/project-metadata.test.ts
import { join } from 'path'; import { describe, it, expect, vi } from 'vitest'; import { getBlockStructure } from '../../../curriculum/src/file-handler.js'; import { getMetaData } from './project-metadata.js'; vi.mock('../../../curriculum/src/file-handler'); const commonPath = join('curriculum', 'challenges', 'blocks...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/daily-challenges/seed-daily-challenges.ts
tools/daily-challenges/seed-daily-challenges.ts
/* Script to seed daily challenges to freeCodeCamp database, DailyCodingChallenges collection. It gets the daily challenge data from the dev-playground superblock using GraphQL. The main client needs to be running with upcoming changes shown to get the info from GraphQL. Run the curriculum tests on the dev-play...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/daily-challenges/helpers.ts
tools/daily-challenges/helpers.ts
import { MongoClient, ObjectId } from 'mongodb'; import { Challenge, QueryResult } from './types'; const GRAPHQL_ENDPOINT = 'http://localhost:8000/___graphql'; // Query graphQL - note that the main client needs to be running to query the challenges export async function queryGraphQL(query: string) { const response ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/daily-challenges/types.ts
tools/daily-challenges/types.ts
export type QueryResult = { data: { allChallengeNode: { edges: { node: { challenge: Challenge; }; }[]; }; }; }; export type Challenge = { id: string; title: string; date: Date; description: string; tests: { testString: string; text: string; }[]; c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-parser/translation-parser/index.d.ts
tools/challenge-parser/translation-parser/index.d.ts
export interface ChallengeFile { contents: string; ext: string; name: string; } export interface Challenge { id: string; title: string; challengeFiles?: ChallengeFile[]; [key: string]: unknown; } export interface CommentDictionary { [comment: string]: { [lang: string]: string; }; } export funct...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/tools/challenge-parser/parser/index.d.ts
tools/challenge-parser/parser/index.d.ts
// TypeScript declaration file for challenge-parser/parser // This module exports functions to parse challenge markdown files type ChallengeFile = { name: string; contents: string; ext: string; editableRegionBoundaries: number[]; head?: string; tail?: string; }; export interface ParsedChallenge { id: str...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/config.ts
curriculum/src/config.ts
import { resolve } from 'path'; import { config } from 'dotenv'; import { availableLangs } from '../../shared-dist/config/i18n.js'; config({ path: resolve(__dirname, '../../.env') }); const curriculumLangs = availableLangs.curriculum; // checks that the CURRICULUM_LOCALE exists and is an available language export f...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/build-certification.ts
curriculum/src/build-certification.ts
import { readFileSync } from 'fs'; import { load } from 'js-yaml'; export const buildCertification = (filePath: string) => ({ challenges: [load(readFileSync(filePath, 'utf8'))] });
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/super-order.ts
curriculum/src/super-order.ts
import { generateSuperBlockList } from '../../shared-dist/config/curriculum.js'; import { SHOW_UPCOMING_CHANGES } from './config.js'; export function createSuperOrder(superBlocks: string[]) { const superOrder: { [sb: string]: number } = {}; superBlocks.forEach((superBlock, i) => { superOrder[superBlock] = i; ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/filter.ts
curriculum/src/filter.ts
import comparison from 'string-similarity'; /** * Filters the superblocks array to include, at most, a single superblock with the specified block. * If no block is provided, returns the original superblocks array. * * @param {Array<Object>} superblocks - Array of superblock objects, each containing a blocks array....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/file-handler.ts
curriculum/src/file-handler.ts
import { dirname, resolve } from 'node:path'; import assert from 'node:assert'; import { existsSync, readFileSync } from 'node:fs'; import { mkdir, writeFile } from 'node:fs/promises'; import { fileURLToPath } from 'node:url'; import debug from 'debug'; import type { Chapter } from '../../shared-dist/config/chapters.j...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/get-challenges.ts
curriculum/src/get-challenges.ts
import { access as _access, constants } from 'fs'; import { resolve, join } from 'path'; import { promisify } from 'util'; import { availableLangs } from '../../shared-dist/config/i18n.js'; import { buildCurriculum } from './build-curriculum.js'; import { curriculumFilter } from './config.js'; import type { Filter } f...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/build-superblock.ts
curriculum/src/build-superblock.ts
import { existsSync, readdirSync } from 'fs'; import { resolve } from 'path'; import { isEmpty } from 'lodash'; import debug from 'debug'; import { parseMD } from '../../tools/challenge-parser/parser'; import { createPoly } from '../../shared-dist/utils/polyvinyl'; import { isAuditedSuperBlock } from '../../shared-dis...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/super-order.test.ts
curriculum/src/super-order.test.ts
import { describe, it, expect } from 'vitest'; import { SuperBlocks } from '../../shared-dist/config/curriculum'; import { createSuperOrder, getSuperOrder } from './super-order.js'; const mockSuperBlocks = [ SuperBlocks.RespWebDesignNew, SuperBlocks.JsAlgoDataStructNew, SuperBlocks.FrontEndDevLibs, SuperBlock...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/build-curriculum.ts
curriculum/src/build-curriculum.ts
import { readdirSync, readFileSync, existsSync } from 'fs'; import { resolve, basename } from 'path'; import { isEmpty, isUndefined } from 'lodash'; import debug from 'debug'; import type { CommentDictionary } from '../../tools/challenge-parser/translation-parser/index.js'; import { SuperBlocks } from '../../shared-d...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/reset.d.ts
curriculum/src/reset.d.ts
import '@total-typescript/ts-reset';
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/generate/build-curriculum.ts
curriculum/src/generate/build-curriculum.ts
import fs from 'fs'; import path from 'path'; import { getChallengesForLang } from '../get-challenges'; const globalConfigPath = path.resolve(__dirname, '../../../shared-dist/config'); void getChallengesForLang('english') .then(JSON.stringify) .then(json => { fs.writeFileSync(`${globalConfigPath}/curriculum....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/test/utils/generate-block-tests.ts
curriculum/src/test/utils/generate-block-tests.ts
import fs from 'node:fs'; import path from 'node:path'; import _ from 'lodash'; import { parseCurriculumStructure } from '../../build-curriculum.js'; import { type Filter } from '../../filter.js'; import { curriculumFilter } from '../../config.js'; let __dirnameCompat: string; if (typeof __dirname !== 'undefined') ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/curriculum/src/challenge-auditor/index.ts
curriculum/src/challenge-auditor/index.ts
import { flatten } from 'lodash/fp'; import { availableLangs } from '../../../shared/config/i18n'; import { getChallengesForLang } from '../get-challenges'; import { SuperBlocks, getAuditedSuperBlocks } from '../../../shared/config/curriculum'; // TODO: re-organise the types to a common 'types' folder that can be...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/blocked.spec.ts
e2e/blocked.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Blocked Page', () => { test('should render correctly', async ({ page }) => { await page.goto('/blocked'); await expect(page).toHaveTitle('Access Denied | freeCodeCamp.org'); const mainHeading = page.getByTestId('main-heading'); await ex...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/fill-in-the-blanks.spec.ts
e2e/fill-in-the-blanks.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Fill in the blanks challenge', () => { test.beforeEach(async ({ page }) => { await page.goto( '/learn/a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/task-47' ); }); test('should display feedback if there is ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/link-ms-user.spec.ts
e2e/link-ms-user.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { alertToBeVisible } from './utils/alerts'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/foundational-c-sharp-with-micr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/block-navigation.spec.ts
e2e/block-navigation.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Block Navigation - Hash Updates', () => { test.use({ storageState: { cookies: [], origins: [] } }); test('should update URL hash when clicking on a challenge link in a grid layout', async ({ page }) => { await page.goto( '/learn/javas...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/exam-show-qualified.spec.ts
e2e/exam-show-qualified.spec.ts
import { test, expect } from '@playwright/test'; import intro from '../client/i18n/locales/english/intro.json'; import translations from '../client/i18n/locales/english/translations.json'; const examUrl = '/learn/foundational-c-sharp-with-microsoft/foundational-c-sharp-with-microsoft-certification-exam/foundational-...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/user-token.spec.ts
e2e/user-token.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { alertToBeVisible } from './utils/alerts'; test.use({ storageState: 'playwright/.auth/development-user.json' }); test.beforeEach(() => { ex...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/codeally.spec.ts
e2e/codeally.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; test.describe('Before completing the project', () => { test.use({ storageState: 'playwright/.auth/development-user.json' }); test.beforeEach(() => { execSync('node ./tools/scripts/seed/seed-demo-user --set-true isDonati...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/video-player.spec.ts
e2e/video-player.spec.ts
import { test, expect } from '@playwright/test'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/python-for-everybody/python-for-everybody/introduction-why-program' ); }); test.describe('Challenge Video Player Component Tests', () => { test('should render video player and play button', async ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/report-user.spec.ts
e2e/report-user.spec.ts
import { test, expect } from '@playwright/test'; import { deleteAllEmails, getAllEmails, getFirstEmail, getSubject } from './utils/mailhog'; test.beforeEach(async () => { await deleteAllEmails(); }); test('should be possible to report a user from their profile page', async ({ page }) => { await page.got...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/profile.spec.ts
e2e/profile.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const certs = [ { name: 'Foundational C# with Microsoft', url: '/certification/certifieduser/foundational-c-sharp-with-microsoft' } ]; const legacyCerts = [ { name: 'Legacy ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/project-preview-modal.spec.ts
e2e/project-preview-modal.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.describe('Should be shown automatically', () => { test.beforeEach(async ({ page }) => { const urlWithProjectPreview = '/learn/2022/responsive-web-design/learn-html-by-building...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/signout-modal.spec.ts
e2e/signout-modal.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { allowTrailingSlash } from './utils/url'; test.beforeEach(async ({ page }) => { await page.goto('/'); }); test.describe('Signout Modal component', () => { test('renders the modal c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/super-block-page.spec.ts
e2e/super-block-page.spec.ts
import { execSync } from 'child_process'; import { expect, test } from '@playwright/test'; test.describe('Super Block Page - Authenticated User', () => { test.use({ storageState: 'playwright/.auth/development-user.json' }); test.beforeEach(() => { execSync('node ./tools/scripts/seed/seed-demo-user'); }); ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/seo.spec.ts
e2e/seo.spec.ts
import { test, expect } from '@playwright/test'; import { SuperBlocks } from '../shared/config/curriculum'; import metaTags from '../client/i18n/locales/english/meta-tags.json'; interface StructuredData { '@context': string; '@type': string; itemListElement: ListItem[]; } interface ListItem { '@type': string;...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/exam-results.spec.ts
e2e/exam-results.spec.ts
import * as fs from 'fs'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import intro from '../client/i18n/locales/english/intro.json'; const examUrl = '/learn/foundational-c-sharp-with-microsoft/foundational-c-sharp-with-microsoft-certif...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/multifile-cert-projects.spec.ts
e2e/multifile-cert-projects.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import { clearEditor, focusEditor } from './utils/editor'; test.describe('multifileCertProjects', () => { test.beforeEach(async ({ page }) => { execSync('node ./tools/scripts/seed/seed-demo-user --certified-user'); awai...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/show-certificate-else.spec.ts
e2e/show-certificate-else.spec.ts
import { test, expect, type Page } from '@playwright/test'; test.describe('Show certification else', () => { let page: Page; test.use({ storageState: { cookies: [], origins: [] } }); test.beforeAll(async ({ browser }) => { page = await browser.newPage(); await page.goto('/certification/certifieduser/res...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/form-helper.spec.ts
e2e/form-helper.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.describe('Test form with only solution link', () => { test.beforeEach(async ({ page }) => { await page.goto( 'learn/front-end-development-libraries/front-end-development-librar...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/failed-updates.spec.ts
e2e/failed-updates.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; const failedUpdates = [ { endpoint: '/modern-challenge-completed', payload: { id: '5dc1798ff86c76b9248c6eb3', challengeType: 0 }, id: '4bd1d704-cfaa-44f7-92a3-bc0d857dbaa6' }, { endpoint: '/modern-challenge...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/preview.spec.ts
e2e/preview.spec.ts
import { expect, test } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { focusEditor } from './utils/editor'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-3' );...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/c-sharp.spec.ts
e2e/c-sharp.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const checkAnswerButtonText = translations.buttons['check-answer']; const askForHelpButtonText = translations.buttons['ask-for-help']; const trophyButtonText = translations.buttons['verify-troph...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/projects.spec.ts
e2e/projects.spec.ts
import { execSync } from 'child_process'; import { test, expect, Page } from '@playwright/test'; import { SuperBlocks } from '../shared/config/curriculum'; import translations from '../client/i18n/locales/english/translations.json'; import tributePage from './fixtures/tribute-page.json'; import curriculum from './fixtu...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/flash.spec.ts
e2e/flash.spec.ts
import { test, expect, type Page } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const checkFlashMessageVisibility = async (page: Page, translation: string) => { const flashMessage = page.getByText(translation); await expect(flashMessage).toBeVisible(); con...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/multifile-editor.spec.ts
e2e/multifile-editor.spec.ts
import { test, expect } from '@playwright/test'; import { clearEditor, focusEditor, getEditors } from './utils/editor'; import solution from './fixtures/learn-basic-css-by-building-a-cafe-menu-15.json'; import { isMacOS } from './utils/user-agent'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/challenge-reset-modal.spec.ts
e2e/challenge-reset-modal.spec.ts
import { execSync } from 'child_process'; import { test, expect, Page } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { clearEditor, focusEditor, getEditors } from './utils/editor'; import { alertToBeVisible } from './utils/alerts'; const expectToRenderR...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/legacy-editor.spec.ts
e2e/legacy-editor.spec.ts
import { test, expect } from '@playwright/test'; import { focusEditor } from './utils/editor'; test.describe('Editor Shortcuts', () => { test('Should add a new line if the user presses Alt+Enter', async ({ page, isMobile }) => { await page.goto( 'learn/responsive-web-design/basic-html-and-html5/s...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/help-modal.spec.ts
e2e/help-modal.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code' ); }); test.descri...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/shortcuts-modal.spec.ts
e2e/shortcuts-modal.spec.ts
import { APIRequestContext, Page, expect, test } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { authedRequest } from './utils/request'; import { getEditors } from './utils/editor'; const course = '/learn/javascript-algorithms-and-data-structures/basic-...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/daily-coding-challenge.spec.ts
e2e/daily-coding-challenge.spec.ts
import { test, expect } from '@playwright/test'; import { getTodayUsCentral, formatDate, formatDisplayDate } from '../client/src/components/daily-coding-challenge/helpers'; const dateRouteRe = /.*\/daily-coding-challenge\/date\/.*/; const allRouteRe = /.*\/daily-coding-challenge\/all/; const todayUsCentral = ge...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/progress-reset-modal.spec.ts
e2e/progress-reset-modal.spec.ts
import { exec } from 'child_process'; import { promisify } from 'util'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const execP = promisify(exec); test.beforeEach(async ({ page }) => { await page.goto('/settings'); }); test.afterEach...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/progress-bar.spec.ts
e2e/progress-bar.spec.ts
import { expect, test } from '@playwright/test'; import { clearEditor, focusEditor } from './utils/editor'; test.describe('Progress bar component', () => { test('Should appear with the correct content after the user has submitted their code', async ({ page, isMobile, browserName }) => { await page....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/notes.spec.ts
e2e/notes.spec.ts
import { expect, test } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const notesButtonLabel = translations.learn['editor-tabs'].notes; test('User can see notes', async ({ page, isMobile }) => { const noteContent = 'This is a test note'; await page.route( ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/multiple-choice-question-challenge.spec.ts
e2e/multiple-choice-question-challenge.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const pageWithSpeaking = '/learn/b1-english-for-developers/learn-about-adverbial-phrases/task-19'; const pageWithoutSpeaking = '/learn/responsive-web-design-v9/lecture-what-is-css/what-is-t...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/intro-page.spec.ts
e2e/intro-page.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Certification intro page', () => { test('Should render', async ({ page }) => { await page.goto('/learn/coding-interview-prep'); await expect( page.getByText( "If you're looking for free coding exercises to prepare for your next job...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/update-email.spec.ts
e2e/update-email.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { allowTrailingSlash } from './utils/url'; import { deleteAllEmails, getAllEmails, getFirstEmail, getSubject } from './utils/mailhog'; test.beforeEach(async () => { await delet...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/show.spec.ts
e2e/show.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; // Tests for challenges rendered by `client/src/templates/Challenges/odin/show.tsx` test.describe('Odin challenges', () => { test.beforeEach(async ({ page }) => { await page.goto( '...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/navigation-from-last-challenge.spec.ts
e2e/navigation-from-last-challenge.spec.ts
import { test } from '@playwright/test'; import solution from './fixtures/build-a-personal-portfolio-webpage.json'; import { clearEditor, focusEditor } from './utils/editor'; import { isMacOS } from './utils/user-agent'; // middle of block const challenge1 = { url: '/learn/front-end-development-libraries/front-end-d...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/completion-modal.spec.ts
e2e/completion-modal.spec.ts
import { execSync } from 'node:child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { authedRequest } from './utils/request'; import { allowTrailingSlash } from './utils/url'; const nextChallengeURL = '/learn/data-analys...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/exit-exam-modal.spec.ts
e2e/exit-exam-modal.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const examUrl = '/learn/foundational-c-sharp-with-microsoft/foundational-c-sharp-with-microsoft-certification-exam/foundational-c-sharp-with-microsoft-certification-exam'; const cancelExamUrl...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/exam-show-non-qualified.spec.ts
e2e/exam-show-non-qualified.spec.ts
import { test, expect } from '@playwright/test'; import intro from '../client/i18n/locales/english/intro.json'; import translations from '../client/i18n/locales/english/translations.json'; const examUrl = '/learn/foundational-c-sharp-with-microsoft/foundational-c-sharp-with-microsoft-certification-exam/foundational-...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/academic-honesty.spec.ts
e2e/academic-honesty.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { alertToBeVisible } from './utils/alerts'; test.describe('When the user has not accepted the Academic Honesty Policy', () => { test.use({ sto...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/action-row.spec.ts
e2e/action-row.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const buttonNames = ['Instructions', 'index.html', 'styles.css', 'Console']; test.describe('Desktop view', () => { test.skip(({ isMobile }) => isMobile, 'Only test on desktop'); test.desc...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/exam-token.spec.ts
e2e/exam-token.spec.ts
// TO ENABLE THESE TESTS GROWTHBOOK HAS TO BE SET IN THE ENVIRONMENT VARIABLES` // UNCOMMENT WHEN NEW API IS READY. // import { test, expect } from '@playwright/test'; // test.beforeEach(async ({ page }) => { // await page.goto('/settings'); // }); // test.describe('Exam Token Widget', () => { // test('should te...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/redirect.spec.ts
e2e/redirect.spec.ts
import { test, expect } from '@playwright/test'; import { allowTrailingSlash } from './utils/url'; // To run this test locally you will need to run: pnpm run start-ci; // Also, make sure that you have pm2 installed globally via: pnpm install -g pm2 const pathsToTest = [ ['/challenges', '/learn'], ['/learn/front-e...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/reset-editor-layout.spec.ts
e2e/reset-editor-layout.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Reset Editor Layout', () => { test('drag layout and reset', async ({ page, isMobile }) => { test.skip( isMobile, 'The mobile layout does not have resizable panes, so this test is not applicable.' ); await page.goto( '/lear...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/show-cert-from-superblock.spec.ts
e2e/show-cert-from-superblock.spec.ts
import { execSync } from 'child_process'; import { expect, test } from '@playwright/test'; test.describe('When the user HAS NOT claimed their cert', () => { test.use({ storageState: 'playwright/.auth/development-user.json' }); test.beforeAll(() => { execSync('node ./tools/scripts/seed/seed-demo-user'); }); ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/header.spec.ts
e2e/header.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { availableLangs, hiddenLangs, LangNames } from '../shared/config/i18n'; import links from '../client/i18n/locales/english/links.json'; const he...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/quiz-challenge.spec.ts
e2e/quiz-challenge.spec.ts
import fs from 'fs'; import path from 'path'; import { test, expect } from '@playwright/test'; import { allowTrailingSlash } from './utils/url'; interface QuizQuestion { distractors: string[]; text: string; answer: string; } interface Quiz { questions: QuizQuestion[]; } interface PageData { result: { d...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/editor-tabs.spec.ts
e2e/editor-tabs.spec.ts
import { expect, test } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form' ); }); test('should toggle editor visibility ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/challenge.spec.ts
e2e/challenge.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { clearEditor, focusEditor, getEditors } from './utils/editor'; test.describe('when reloading the page', () => { test.beforeEach(async ({ page }) => { const pageUsingEditableRegio...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/third-party-donation.spec.ts
e2e/third-party-donation.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import stripeJson from './fixtures/donation/stripe.json'; import { alertToBeVisible } from './utils/alerts'; test.describe('third-party donation tests', () => { test.beforeEach(async ({ page...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/mobile-layout.spec.ts
e2e/mobile-layout.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.describe('Classic challenge - 5 tabs mobile layout component', () => { test.skip( ({ isMobile }) => isMobile === false, 'Skip testing on desktop as this component is only used f...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/show-certificate-own.spec.ts
e2e/show-certificate-own.spec.ts
import { test, expect, type Page } from '@playwright/test'; test.describe('Show certification own', () => { let page: Page; test.beforeAll(async ({ browser }) => { page = await browser.newPage(); await page.goto('/certification/certifieduser/responsive-web-design'); }); test('should display the certi...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/iframe-script.spec.ts
e2e/iframe-script.spec.ts
import { expect, test } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; import { focusEditor } from './utils/editor'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/javascript-algorithms-and-data-structures-v8/build-a-cash-register-project/bui...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/staging-warning-modal.spec.ts
e2e/staging-warning-modal.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; test.beforeEach(async ({ page }) => { await page.goto('/'); }); test.describe('Staging Warning Modal E2E Test Suite', () => { test('Verifies the Correct Rendering of the Staging Warning Mo...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/ms-trophy-show.spec.ts
e2e/ms-trophy-show.spec.ts
import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const verifyTrophyButtonText = translations.buttons['verify-trophy']; const askForHelpButtonText = translations.buttons['ask-for-help']; test.use({ storageState: { cookies: [], origins: [] } })...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/completed-project-preview.spec.ts
e2e/completed-project-preview.spec.ts
import { execSync } from 'node:child_process'; import { test, expect, Page } from '@playwright/test'; import tributePage from './fixtures/tribute-page.json'; import { authedRequest } from './utils/request'; const unlockedProfile = { isLocked: false, showAbout: true, showCerts: true, showDonation: true, sh...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/email-settings.spec.ts
e2e/email-settings.spec.ts
import { execSync } from 'child_process'; import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; const settingsPageElement = { emailVerificationAlert: 'email-verification-alert', emailVerificationLink: 'email-verification-link', flashMessag...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/full-stack-page.spec.ts
e2e/full-stack-page.spec.ts
import { test, expect } from '@playwright/test'; const requiredCerts = [ { text: 'Responsive Web Design Certification', slug: '/learn/responsive-web-design-v9/' }, { text: 'JavaScript Certification', slug: '/learn/javascript-v9/' }, { text: 'Front End Development Libraries Certification',...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/bread-crumb.spec.ts
e2e/bread-crumb.spec.ts
import { test, expect } from '@playwright/test'; test.beforeEach(async ({ page }) => { await page.goto( '/learn/responsive-web-design-v9/workshop-cat-photo-app/step-2' ); }); test.describe('Challenge Breadcrumb Tests', () => { test('should display correctly', async ({ page, isMobile }) => { const breadc...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/e2e/desktop-layout.spec.ts
e2e/desktop-layout.spec.ts
import { test, expect } from '@playwright/test'; test.describe('Classic challenge - 3 pane desktop layout component', () => { test.skip( ({ isMobile }) => isMobile === true, 'Skip testing on mobile as this component is only used for desktop' ); test('The page has desktop layout with instructions/editor/...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false