mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-27 20:01:56 -04:00
fix: enable filtered tests/development (#65542)
This commit is contained in:
committed by
GitHub
parent
cbb803d479
commit
92e508ad72
@@ -3,9 +3,14 @@
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"env": ["FCC_*"],
|
||||
"outputs": ["public/**"]
|
||||
},
|
||||
"develop": {
|
||||
"env": ["FCC_*"]
|
||||
},
|
||||
"setup": {
|
||||
"env": ["FCC_*"],
|
||||
"outputs": [
|
||||
"config/env.json",
|
||||
"i18n/locales/*.json",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -3,7 +3,14 @@
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"outputs": ["dist/**", "generated/**"]
|
||||
"outputs": ["dist/**", "generated/**"],
|
||||
"env": ["FCC_*"]
|
||||
},
|
||||
"test": {
|
||||
"env": ["FCC_*"]
|
||||
},
|
||||
"test-content": {
|
||||
"env": ["FCC_*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user