Skip to content

Releases: oclif/test

4.0.9

25 Aug 05:29
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump micromatch from 4.0.7 to 4.0.8 (3a982f4)

4.0.8

04 Aug 08:28
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump ansis from 3.3.1 to 3.3.2 (c839b7a)

4.0.7

29 Jul 02:44
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump debug from 4.3.5 to 4.3.6 (438e6d1)

4.0.6

23 Jul 15:11
Compare
Choose a tag to compare

Bug Fixes

4.0.5

21 Jul 11:21
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump ansis from 3.2.1 to 3.3.1 (a67d317)

4.0.4

13 Jun 02:39
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump braces from 3.0.2 to 3.0.3 (2db9360)

4.0.3

02 Jun 02:49
Compare
Choose a tag to compare

Bug Fixes

  • deps: bump debug from 4.3.4 to 4.3.5 (69b15de)

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