Skip to content

Releases: oclif/test

4.0.2

22 May 17:27
Compare
Choose a tag to compare

Bug Fixes

  • preserve quotes in inputs to runCommand (2fad42a)

4.0.1

21 May 18:08
Compare
Choose a tag to compare

No more fancy-test

Why?

We're migrating away from fancy-test for a few reasons:

  • it assumes people will use mocha as their test runner
  • there's a learning curve to writing fancy tests. Most people know how like to write their tests and don't want to bother with learning a new test framework
  • fancy-test offers a lot of useful utilities (like stubbing process.env) but it doesn't do everything that people need so people end up writing tests that are half fancy-tests and half "unfancy" tests. We'd rather enable people to write tests however they want.
  • we don't have bandwidth to support it as fully as we would like

New Testing Utilities

There are now three functions exported by @oclif/test

  • captureOutput - accepts a callback. All output to stderr and stdout will be captured while the callback is being executed
  • runCommand - run a command within your CLI. All output to stderr and stdout will be captured
  • runHook - run a hook within your CLI. All output to stderr and stdout will be captured

See the migration guide and the usage for more

4.0.1-beta.4

17 May 17:04
Compare
Choose a tag to compare
4.0.1-beta.4 Pre-release
Pre-release

Bug Fixes

4.0.1-beta.3

17 May 16:59
Compare
Choose a tag to compare
4.0.1-beta.3 Pre-release
Pre-release

Bug Fixes

4.0.1-dev.0

15 May 16:40
Compare
Choose a tag to compare
4.0.1-dev.0 Pre-release
Pre-release

Features

  • new oclif test utilities (006c90c)

4.0.1-beta.2

15 May 21:25
Compare
Choose a tag to compare
4.0.1-beta.2 Pre-release
Pre-release

Bug Fixes

4.0.1-beta.1

15 May 19:20
Compare
Choose a tag to compare
4.0.1-beta.1 Pre-release
Pre-release

Bug Fixes

4.0.1-beta.0

15 May 18:19
Compare
Choose a tag to compare
4.0.1-beta.0 Pre-release
Pre-release
4.0.1-beta.0

3.2.15

12 May 05:27
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump fancy-test from 3.0.14 to 3.0.15 (8b75374)

3.2.14

12 May 02:35
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump @oclif/core from 3.26.5 to 3.26.6 (b0be7fa)