Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update dependencies: test packages to v5 (major) - autoclosed #110

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 19, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ava (source) 3.15.0 -> 5.2.0 age adoption passing confidence
escape-string-regexp 4.0.0 -> 5.0.0 age adoption passing confidence

Release Notes

avajs/ava

v5.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: avajs/ava@v5.1.1...v5.2.0

v5.1.1

Compare Source

What's Changed

Full Changelog: avajs/ava@v5.1.0...v5.1.1

v5.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: avajs/ava@v5.0.1...v5.1.0

v5.0.1

Compare Source

Despite the major version bump this is a relatively minor release. Node.js 12 is no longer supported. The type definitions are now distributed to be compatible with TypeScript 4.7 or newer.

npm install --save-dev ava

Breaking Changes

Improvements

New Contributors

Full Changelog: avajs/ava@v4.3.3...v5.0.1

v5.0.0

Compare Source

Despite the major version bump this is a relatively minor release. Node.js 12 is no longer supported. The type definitions are now distributed to be compatible with TypeScript 4.7 or newer.

It's available as a pre-release under the next tag for the next few weeks:

npm install --save-dev ava@next

Breaking Changes

Improvements

New Contributors

Full Changelog: avajs/ava@v4.3.3...v5.0.0

v4.3.3

Compare Source

Add compatibility with Node.js 18.8, thanks @​Brooooooklyn #​3091.

Full Changelog: avajs/ava@v4.3.1...v4.3.3

v4.3.2

Compare Source

v4.3.1

Compare Source

What's Changed

New Contributors

Full Changelog: avajs/ava@v4.3.0...v4.3.1

v4.3.0

Compare Source

What's Changed

Full Changelog: avajs/ava@v4.2.0...v4.3.0

v4.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: avajs/ava@v4.1.0...v4.2.0

v4.1.0

Compare Source

New features

Fixes

New Contributors

Full Changelog: avajs/ava@v4.0.1...v4.1.0

v4.0.1

Compare Source

What's Changed

Full Changelog: avajs/ava@v4.0.0...v4.0.1

v4.0.0: AVA 4

Compare Source

We're celebrating the new year with the official AVA 4 release! 🎊

npm install -D ava

The cool new stuff 🆒

Worker threads 🧑‍💼

By default, test files are now run in worker threads! Huge thanks to @​dnlup for landing this.

Test files should run a little quicker, since it's easier to spin up a worker thread than a child process. You can use --no-worker-threads on the command line, or workerThreads: false in your AVA configuration, to fall back to using child processes.

Shared workers are no longer experimental 🎊

Shared workers are no longer experimental. This is a powerful feature that loads a program in a worker thread in AVA's main process and then communicate with code running in the test workers. This enables your tests to better utilize shared resources during a test run, as well as providing opportunities to set up these resources before tests start (or clean them up after).

When you use watch mode, shared workers remain loaded across runs.

Improved test selection 🤳

AVA selects test files based on your package.json or ava.config.* configuration files. When used on the CLI you can then provide patterns to select a subset of these files.

You can now pass a folder and AVA will select the test files contained therein. Or you can provide a specific JavaScript file and AVA will run it even if it wasn’t selected by your configuration.

If AVA finds files based on the configuration, but none of those were selected to the CLI arguments, it now prints a warning.

Better monorepo support 🚝

AVA now looks for ava.config.* files in parent directories, until it finds a directory with a .git directory (or file). This lets you specify AVA configuration at the top of your monorepo and still run AVA from within each package.

New snapshot format 📸

@​ninevra has worked tirelessly on landing a new snapshot format. It contains all information necessary to regenerate the report file. This allows for snapshots to be updated even if tests or assertions are skipped.

Previously failing test files run first 🏃

AVA now records which test files failed in the previous run. It then prioritizes testing these files when you run AVA again. Thanks @​bunysae!

ESM support 🤾

AVA 4 comes with full ES module support. Both ESM and CJS entrypoints are provided so that you can use it no matter how you manage your project.

The ava.config.js file is now treated as CJS or ESM depending on module type configured in the package.json file. ava.config.mjs is now supported.

If you use JavaScript files with non-standard extensions you can configure AVA to import them.

Note that dependency tracking in watch mode does not yet work with ES modules.

Dedicated macro factory with type inference 🏭

test.macro() returns an object that can be used with test() and hooks. The t.context type is inherited from test. When used with TypeScript this gives much better type inference.

Like with AVA 3, regular functions that also have a title property that is a string-returning function are supported. However the type checking won’t be as good.

Source maps 🗺

AVA now uses the source map support that’s built in to Node.js itself. This should give better stack traces. However we’re not sure yet what happens if you load a program that automatically modifies stack traces.

Line number selection (where npx ava test.js:5 runs the test at line 5) now uses source maps and so should work better with TypeScript files.

Assertions as type guards 💂

Most assertions now return a boolean indicating whether they passed. If you use AVA with TypeScript, you can use this as a type guard. Thanks @​jmarkham828!

(This is not supported for t.snapshot() and the "throws" assertions.)

Breaking changes 💥

AVA 4 requires at least Node.js 12.22, 14.17, 16.4 or 17. Node.js 10 is no longer supported.

If installed globally, AVA will no longer use any locally installed version. Install locally and run with npx ava instead. When running test files from another project that also has AVA installed, those test files will now fail to run (because they'll try and use that other AVA version).

Ecosystem 🏞
  • Support for @ava/babel has been removed. We haven’t seen enough contributions to that package to recommend it for AVA 4. We’d be open to reinstating it in the future (just as we’d be open to support any other compilation provider).
  • As a consequence, “enhanced assertions” are no longer available.
  • AVA 4 requires avajs/typescript@1.1 or newer.
  • Support for the esm package has been removed.
Configuration 🗒
  • ava.config.js now follows the module type configured in package.json.
  • ava.config.* files may be found that are outside your project directory.
Tests and assertions 🥼
  • By default test files execute in worker threads, not child processes.
  • test.meta.file and test.meta.snapshotDirectory are now file URL strings.
  • Whitespace in test titles is now normalized. This could result in two tests being treated as having the same title, even though they are different in code. Thanks @​KillyMXI!
  • test() and t.try() no longer take an array of test implementations. Use a loop instead.
  • The t.throws() and t.throwAsync() assertions can no longer be called with a null value for the expectations argument.
  • test.cb() and t.end() have been removed. Use async functions and util.promisify() instead.
  • t.teardown() now executes in last-in-first-out order.
Snapshots 📸
  • Snapshots recorded using earlier AVA versions are no longer recognized. Run npx ava -u to rebuild your snapshots after upgrading.
  • Snapshots no longer recognize React elements, instead we want to provide this functionality through a plugin interface
  • t.snapshot() no longer works in hooks.
  • t.snapshot() no longer takes an options argument allowing you to customize the snapshot ID.
TypeScript 🪛
  • The instanceOf expectation of t.throws() and t.throwsAsync() assertions must now be an Error constructor.
  • You’re expected to use test.macro() when declaring macros.
  • Implementation arguments now default to unknown.
  • Types have been renamed. Meta replaces MetaInterface, other types with Interface suffixes now use the Fn suffix. There may be some other changes too. 4b4b2f6
  • t.throws() and t.throwsAsync() return undefined when the assertion fails. The type definition now matches this behavior.
  • Our TypeScript definitions are now tested against TypeScript 4.4

Other changes 🤓

  • We’ve removed the non-verbose reporter because it proved too hard to maintain two subtly different reporter outputs. We’d really like to rewrite the reporter.
  • AVA's configuration files may now export promises or asynchronous factory methods.
  • The --config argument may now point to a file that is not alongside the package.json file.
  • When you use t.timeout(), AVA itself won’t time out until your test does. Thanks @​OhYash!
  • Multi-line snapshot labels now render correctly in Markdown. Thanks @​KillyMXI!
  • The reporters now clean up .test and .spec extensions from file names, as well as test- prefixes.
  • Watch mode is better at detecting changes to snapshots and not rerunning tests.

New Contributors

Full changelog since RC 1: avajs/ava@v4.0.0-rc.1...v4.0.0
Full changelog since AVA 3: avajs/ava@v3.15.0...v4.0.0

sindresorhus/escape-string-regexp

v5.0.0

Compare Source

Breaking

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title ⬆️ Update dependency ava to v3 ⬆️ Update dependency ava to v3 Jan 21, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 9666f58 to b921216 Compare February 8, 2020 15:58
@renovate renovate bot changed the title ⬆️ Update dependency ava to v3 ⬆️ Update dependency ava to v3 Feb 8, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from b921216 to 6cc7c3a Compare February 16, 2020 17:00
@renovate renovate bot changed the title ⬆️ Update dependency ava to v3 ⬆️ Update dependency ava to v3 Feb 16, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 6cc7c3a to f17a5ee Compare March 15, 2020 05:00
@renovate renovate bot changed the title ⬆️ Update dependency ava to v3 ⬆️ Update dependency ava to v3 Mar 15, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from f17a5ee to 4a0ee6a Compare April 21, 2020 07:58
@renovate renovate bot changed the title ⬆️ Update dependency ava to v3 ⬆️ Update dependencies: test packages (major) Apr 21, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch 11 times, most recently from 37c1cd7 to 7030cf5 Compare April 21, 2020 15:26
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Apr 21, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 7030cf5 to 6c5982b Compare April 21, 2020 16:53
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Apr 21, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch 3 times, most recently from 5ed089a to 954434b Compare April 23, 2020 07:43
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Apr 23, 2020
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Apr 26, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch 2 times, most recently from 9aba810 to 30eea96 Compare April 27, 2020 11:58
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 7427393 to 1cf6fb2 Compare July 7, 2020 15:58
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Jul 7, 2020
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Jul 7, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 1cf6fb2 to 87e9dea Compare July 27, 2020 08:09
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Jul 27, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 87e9dea to d2374c4 Compare August 26, 2020 01:58
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Aug 26, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from d2374c4 to 3c30345 Compare October 27, 2020 16:01
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Oct 27, 2020
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Nov 28, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 3c30345 to 3c4bae5 Compare December 11, 2020 17:02
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Dec 11, 2020
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 3c4bae5 to e7210f8 Compare January 7, 2021 01:01
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages (major) Jan 7, 2021
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from e7210f8 to a22b536 Compare April 26, 2021 14:38
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from a22b536 to 26c9e66 Compare June 6, 2021 23:12
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 26c9e66 to 9a30cb7 Compare October 18, 2021 21:30
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 9a30cb7 to 043426d Compare March 7, 2022 12:20
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 043426d to fcd95f2 Compare April 25, 2022 02:24
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from fcd95f2 to 3046ce2 Compare June 18, 2022 21:15
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 3046ce2 to 2928eac Compare September 25, 2022 22:27
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 2928eac to de68a1c Compare November 20, 2022 10:52
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from de68a1c to 0c86573 Compare March 12, 2023 13:44
@renovate renovate bot changed the title ⬆️ Update dependencies: test packages (major) ⬆️ Update dependencies: test packages to v5 (major) Mar 12, 2023
@renovate renovate bot force-pushed the renovate/major-tester-packages branch from 0c86573 to 5244d0f Compare March 12, 2023 14:22
@codeclimate
Copy link

codeclimate bot commented Mar 12, 2023

Code Climate has analyzed commit 5244d0f and detected 0 issues on this pull request.

View more on Code Climate.

@renovate renovate bot changed the title ⬆️ Update dependencies: test packages to v5 (major) ⬆️ Update dependencies: test packages to v5 (major) - autoclosed Mar 12, 2023
@renovate renovate bot closed this Mar 12, 2023
@renovate renovate bot deleted the renovate/major-tester-packages branch March 12, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants