fix: enable filtered tests/development (#65542)

This commit is contained in:
Oliver Eyton-Williams
2026-01-30 17:46:25 +01:00
committed by GitHub
parent cbb803d479
commit 92e508ad72
6 changed files with 19 additions and 3 deletions

View File

@@ -3,9 +3,14 @@
"extends": ["//"],
"tasks": {
"build": {
"env": ["FCC_*"],
"outputs": ["public/**"]
},
"develop": {
"env": ["FCC_*"]
},
"setup": {
"env": ["FCC_*"],
"outputs": [
"config/env.json",
"i18n/locales/*.json",

View File

@@ -50,7 +50,7 @@
"test:watch": "pnpm test-gen && vitest",
"test-gen": "tsx ./src/test/utils/generate-block-tests.ts",
"test-tooling": "pnpm test --project @freecodecamp/curriculum",
"test-content": "pnpm test --project test"
"test-content": "pnpm test-gen && pnpm test --project test"
},
"devDependencies": {
"@babel/core": "7.23.7",

View File

@@ -3,7 +3,14 @@
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["dist/**", "generated/**"]
"outputs": ["dist/**", "generated/**"],
"env": ["FCC_*"]
},
"test": {
"env": ["FCC_*"]
},
"test-content": {
"env": ["FCC_*"]
}
}
}

View File

@@ -65,6 +65,9 @@
"serve:client-ci": "cd ./client && pnpm run serve-ci",
"start": "turbo setup && npm-run-all -p develop:server serve:client",
"test": "turbo test",
"test-client": "turbo -F=@freecodecamp/client test",
"test-api": "turbo -F=@freecodecamp/api test",
"test-curriculum-content": "turbo -F=@freecodecamp/curriculum test-content",
"prepare": "husky",
"playwright:run": "pnpm -F e2e run playwright:run",
"playwright:watch": "pnpm -F e2e run playwright:watch"

View File

@@ -10,5 +10,5 @@ IFS=',' challengeIDS=($input)
for challengeID in "${challengeIDS[@]}";
do
challengeID="$(tr -d ' ' <<< "$challengeID")"
FCC_CHALLENGE_ID=$challengeID pnpm run test:curriculum
FCC_CHALLENGE_ID=$challengeID pnpm turbo -F=@freecodecamp/curriculum test
done

View File

@@ -6,6 +6,7 @@
"lint": { "dependsOn": ["setup"] },
"setup": { "dependsOn": ["^build"] },
"test": { "dependsOn": ["setup"] },
"test-content": { "dependsOn": ["setup"] },
"type-check": { "dependsOn": ["setup"] },
"//#lint-root": {
"dependsOn": ["@freecodecamp/shared#build"]