freeCodeCamp / freeCodeCamp/web3-curriculum

[BUG]: Unable to run any tests

Open
#94 15 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
177
Forks
81
PR merge metrics
No merged PRs in 30d

Description

### Issue/Experience
I started the course and just in the first lesson where you cd into a folder, none of my tests were passing.

### Output of running `node tooling/camper-info.js` from the workspace root
```
🔵 INFO: Project: learn-digital-ledgers-by-building-a-blockchain
🔵 INFO: Lesson Number: 1
🔵 INFO: Curriculum Version: 0.1.3
🔵 INFO: freeCodeCamp - Courses: undefined
🔵 INFO: Commit: c1ef015 chore: update freecodecamp-os to 1.8.3 (#92)

🔵 INFO: OS Info:
Architecture: x64
Platform: linux
Release: 5.15.90.1-microsoft-standard-WSL2
Type: Linux
```

### Output of freeCodeCamp: Run Course terminal
```🔵 INFO: 2023-04-30 12:12:42 Listening on port 8080
🔵 INFO: 2023-04-30 12:12:44 Watching for file changes on /workspace/web3-curriculum
🔴 ERROR: 2023-04-30 12:12:48 Test #2: Error: Could not find /workspace/web3-curriculum/.logs/.cwd.log
at Object.getCWD (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test-utils.js:133:11)
at async eval (eval at (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), :2:17)
at async file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:29
at async Promise.allSettled (index 1)
at async runTests (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:122:22)
at async FSWatcher. (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/hot-reload.js:51:9)
🔴 ERROR: 2023-04-30 12:13:21 Test #2: Error: Could not find /workspace/web3-curriculum/.logs/.cwd.log
at Object.getCWD (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test-utils.js:133:11)
at async eval (eval at (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), :2:17)
at async file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:29
at async Promise.allSettled (index 1)
at async runTests (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:122:22)
at async Object.handleRunTests [as run-tests] (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/server.js:48:3)
🔴 ERROR: 2023-04-30 12:14:59 Test #2: Error: Could not find /workspace/web3-curriculum/.logs/.cwd.log
at Object.getCWD (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test-utils.js:133:11)
at async eval (eval at (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), :2:17)
at async file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:29
at async Promise.allSettled (index 1)
at async runTests (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:122:22)
at async Object.handleRunTests [as run-tests] (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/server.js:48:3)
```

Contributor guide

Open the contributing guide

Research direction

Reproduce from the workspace root with `node tooling/camper-info.js` and the freeCodeCamp Run Course terminal. Start with the reported missing `.logs/.cwd.log` and the `getCWD` path in `node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test-utils.js`; done means the lesson tests run without the missing-log error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.