Skip to content

Docs bug (Windows): coderoad build needs top-level id in coderoad.yaml, and ./node_modules/.bin/mocha doesn’t run on PowerShell #638

@qiuliw

Description

@qiuliw

Link

https://coderoad.github.io/docs/create-a-practice-tutorial

Problem

Following the guide on Windows fails:

  1. coderoad build errors: “should have required property 'id'” (docs YAML example has no root id).
  2. Test runner command ./node_modules/.bin/mocha fails on Windows; should use node_modules/.bin/mocha.cmd (or other Windows-safe command).

Fix (docs)

  • Add to coderoad.yaml:
id: first-tutorial
  • Change:
command: ./node_modules/.bin/mocha

to:

command: node_modules/.bin/mocha.cmd

Env

Windows + PowerShell, Node 20, @coderoad/cli v0.9.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions