Skip to content

tools: force common be required before any other modules

Add a new eslint rule require-common-first to enforce common be loaded in tests before any other modules.

The common module should be required in tests before any other module: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#lines-1-3

Refs: https://github.com/nodejs/node/pull/27455#discussion_r279222145

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading