Implicit "global" options merging is no longer supported
In previous versions of babel-plugin-tester, any test object and fixture configuration option could be passed directly to babel-plugin-tester and apply "globally" across all test objects and fixtures. This was even the case for options that made no sense in a "global" context, such as only, skip, and code. In this version of babel-plugin-tester, only options explicitly listed in the documentation can be passed directly and applied globally. Unrecognized "rest" options are silently ignored.
Test/fixture configuration is resolved early and consistently
In previous versions of babel-plugin-tester, test object and fixture configuration options were resolved in various places, with some options getting finalized before it(...) and describe(...) were called and others being determined as Jest was executing the test. In this version, all configuration options are resolved and finalized before it(...) and describe(...) are called. This also means configurations are finalized before hooks like beforeAll get called by the testing framework.
Fixture configuration schema is standardized
In previous versions of babel-plugin-tester, you could provide any key to options.json and it would be passed as-is to the plugin under test. This made it impossible to allow fixtures to be configured with the same flexibility as test objects. In this version of babel-plugin-tester, fixture options.json (and options.js) files must return a standard set of options. Non-standard properties are silently ignored. For instance: to pass options to the plugin under test, they must be provided via pluginOptions.
Global setup/teardown no longer overwrites local versions
Pass full file path to prettier::resolveConfig, not just the dirname ([e9ebcdd][4])
[11.0.2][5] (2023-01-23)
πͺ Fixes
src: use cross-realm symbols ([330aa1e][6])
Use node-util import compatible with node@14 ([2c4cd84][7])
βοΈ Build System
babel: explicitly include polyfills for shipped proposals ([850d58c][8])
[11.0.1][9] (2023-01-18)
πͺ Fixes
src: ensure deprecated config option is still supported by prettierFormatter ([e48badf][10]) closes #139[11]
[11.0.0][12] (2023-01-18)
π₯ Breaking Changes π₯
error no longer accepts arbitrary class constructors
error (aka throws) no longer accepts arbitrary class constructors. Any
provided class constructor must extend Error, e.g. built-ins like
SyntaxError or custom error classes like class MyError extends Error. Thanks
to the nature of JavaScript, providing a class constructor that does not
extend Error will lead to undefined behavior.
error only captures exceptions from Babel
error (aka throws) no longer potentially captures exceptions thrown by the
formatResult function. If the formatResult function throws, the entire test
will fail immediately.
TypeError for config error; AssertionError for test error
All configuration-related issues now throw TypeError instead of
AssertionError. AssertionError is now exclusively used for failing tests.
Additionally, the text of some error messages has been updated.
All test titles are now numbered
All test titles are now numbered (e.g. "1. ...", "2. ...", etc), including
This version was pushed to npm by xunnamius, a new releaser for babel-plugin-tester since your current version.
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 babel-plugin-tester from 10.1.0 to 11.0.3.
Release notes
Sourced from babel-plugin-tester's releases.
... (truncated)
Changelog
Sourced from babel-plugin-tester's changelog.
... (truncated)
Commits
ded70cc
release: 11.0.3 [skip ci]2803fe2
chore(package): update dependenciese9ebcdd
fix: pass full file path to prettier::resolveConfig, not just the dirname6606dc2
chore(package): re-add browserslist package18b0b95
release: 11.0.2 [skip ci]13b0f5f
docs(maintaining): remove env command suggestion85264b0
test: fix test setup for Windows systems5b2759b
ci: update env defaults and related instructions7d07631
chore(package): remove browserslist as a dev-dependency88c6ab0
docs: add@βSimenB
to contributorsMaintainer changes
This version was pushed to npm by xunnamius, a new releaser for babel-plugin-tester since your current version.
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)