Skip to content

[Local Dev][Bug] - @oclif/core tests are not hermetic #1364

@spanishpear

Description

@spanishpear

Hi folks!

Context

I was writing #1363 and when running the local devloop outlined in CONTRIBUTING.md - the tests as per

yarn test

failed, as the oclif --version command was returning a different architechture

-  @oclif/core/4.2.10 wsl-x64 node-v20.19.1
+  @oclif/core/4.2.10 linux-x64 node-v20.19.1

Similarly the darwin tests fail, because, well - I'm not on darwin ;)

-/my/home/.cache/@oclif/core
+/my/home/Library/Caches/@oclif/core

Report

this resulted in 11 failing tests locally:

  • main-esm > runs --version
  • main-esm > runs --help
  • main > should run version
  • main > should run help
  • Config > Darwin > should have darwin specific paths
  • Config > win32 > should have win32 specific paths
  • formatRoot > renders the root help
  • formatRoot > description > splits on > for the description in the top level and description sections
  • formatRoot > description > shows description from a template
  • formatRoot > description > prefers the oclif description over the package.json description
  • formatRoot > description > uses package.json description when the oclif description is not set

when running on WSL!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedAccepting PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions