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

Bump ava from 3.15.0 to 4.0.1 #253

Merged
merged 2 commits into from Jan 10, 2022
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented Jan 10, 2022

Bumps ava from 3.15.0 to 4.0.1.

Release notes

Sourced from ava's releases.

v4.0.1

What's Changed

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

AVA 4

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 🤾

... (truncated)

Commits
  • 6b63b1b 4.0.1
  • c384e9a Fix encoding of large snapshot data
  • 9bc615e 4.0.0
  • f09742f Clean up documentation in preparation for AVA 4
  • 0187779 Dependency updates
  • 29024af Test compatibility with TypeScript 4.5
  • 8df118b Use AVA 4 for the self-hosted tests
  • bedd1d0 Remove dependency on equal-length
  • d4ec097 Improve wording in TypeScript recipe
  • b3a1b72 Mention experimental specifier resolution in TypeScript recipe
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ava](https://github.com/avajs/ava) from 3.15.0 to 4.0.1.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v3.15.0...v4.0.1)

---
updated-dependencies:
- dependency-name: ava
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies javascript labels Jan 10, 2022
@nschonni
Copy link
Contributor

@nschonni nschonni commented Jan 10, 2022

Took a quick look and I didn't see any quick fix, except for disabling the "workerThreads": false in the package.json config. That still results in one error

  linting of unreadable Markdown file fails

  Rejected promise returned by test. Reason:

  Error {
    code: 'EPERM',
    dest: '../unreadable.test.md',
    errno: -4048,
    path: 'nonexistent.dest.md',
    syscall: 'symlink',
    message: 'EPERM: operation not permitted, symlink \'nonexistent.dest.md\' -> \'../unreadable.test.md\'',
  }

  › test/test.js:131:6

  ─

  1 test failed

@DavidAnson
Copy link
Collaborator

@DavidAnson DavidAnson commented Jan 10, 2022

Agree about workerThreads, thanks! Not sure about the EPERM... That test tries to set up a broken scenario, not sure why it's newly failing, tho. Did you see that error locally? Maybe try sending a PR to check if it happens in Actions, too?

@DavidAnson DavidAnson merged commit 3009422 into master Jan 10, 2022
12 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ava-4.0.1 branch Jan 10, 2022
@DavidAnson
Copy link
Collaborator

@DavidAnson DavidAnson commented Jan 10, 2022

Thanks, @nschonni!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants