Node: test: unclear error with _toc.html

Created on 20 Jul 2018  路  4Comments  路  Source: nodejs/node

  • Version: master
  • Platform: OS X
  • Subsystem: doc

I'm adding a new error code, and I'm getting:

=== release test-make-doc ===
Path: doctool/test-make-doc
assert.js:338
    throw err;
    ^

AssertionError [ERR_ASSERTION]: _toc.html does not not match TOC
    at Object.<anonymous> (/Users/matteo/Repositories/node/test/doctool/test-make-doc.js:45:10)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Command: out/Release/node /Users/matteo/Repositories/node/test/doctool/test-make-doc.js

Considering that _toc.md was deleted in https://github.com/nodejs/node/pull/21637, what should I do to fix this?

cc @rubys

doc test tools

All 4 comments

Delete it, and run the build again. :-)

rm -rf out/doc

Can we add the instructions rm -rf out/doc to the error message? It would be very helpful!

I think this can be closed as https://github.com/nodejs/node/pull/21913 that somewhat address this has landed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsemozhetbyt picture vsemozhetbyt  路  3Comments

cong88 picture cong88  路  3Comments

dfahlander picture dfahlander  路  3Comments

akdor1154 picture akdor1154  路  3Comments

addaleax picture addaleax  路  3Comments