web3-curriculum: [BUG]: Unable to run any tests

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: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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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.<anonymous> (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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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)

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Hey @ShaunSHamilton I just pulled and rebuilt a container from your branch and I still seem to be getting the same error.

: No such file or directory
BashRC Sourced
root@70b27df2fe92:/workspace/web3-curriculum# cd . && NODE_ENV=production node ./node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/server.js
🔵 INFO:  2023-05-01 11:25:01 Listening on port 8080
🔵 INFO:  2023-05-01 11:25:07 Watching for file changes on /workspace/web3-curriculum
🔴 ERROR:  2023-05-01 11:25:10 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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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.<anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/hot-reload.js:51:9)
🔴 ERROR:  2023-05-01 11:25:19 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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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-05-01 11:25:34 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 <anonymous> (file:///workspace/web3-curriculum/node_modules/@freecodecamp/freecodecamp-os/.freeCodeCamp/tooling/test.js:94:35), <anonymous>: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)