fix(deps): update dependency vest to v5 #2367
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.2.8->5.4.6Release Notes
ealush/vest (vest)
v5.4.6Compare Source
v5.4.5Compare Source
v5.4.4Compare Source
v5.4.3Compare Source
v5.4.2Compare Source
v5.4.1Compare Source
v5.4.0Compare Source
Brings a major performance boost to Suites with many (100+) fields.
v5.3.0Compare Source
v5.2.12Compare Source
v5.2.11Compare Source
v5.2.10Compare Source
v5.2.9Compare Source
v5.2.8Compare Source
v5.2.7Compare Source
v5.2.6Compare Source
v5.2.5Compare Source
v5.2.4Compare Source
v5.2.3Compare Source
v5.2.2Compare Source
v5.2.1Compare Source
v5.2.0Compare Source
v5.1.5Compare Source
v5.1.4Compare Source
v5.1.3Compare Source
v5.1.2Compare Source
v5.1.1Compare Source
v5.1.0Compare Source
v5.0.5Compare Source
v5.0.4Compare Source
v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1: [email protected]Compare Source
Major version of Vest 5.0.0
Upgrading from V4 to V5
Migration guide
Vest 5 is mostly compatible with Vest 4, but some changes were made. In most cases, if you do not change anything, vest will keep working as it did before. However, to take advantage of the new features, you'll need to make some changes.
Eager execution mode is now the default
In previous versions of Vest, Vest continued validating fields even after one of their tests had failed. V5 changes that to improve the runtime performance, and instead, Vest will halt further validations of a given field if it failed. This was an opt-in feature, and it can now be removed.
To bring back the previous behavior, use the
modefunction that alters the execution mode:This also means that if you've used
skipWhento avoid running of failing fields, you can now remove it:All result methods are now available directly on the suite object
In previous versions, you had to call
suite.get()to access the different methods, such asgetErrorsandisValid. In V5, these methods are available directly on the suite object.Added
hasErrorandhasWarningmethodsThe result object has two new methods: hasError and hasWarning. They return a boolean value indicating whether a given field has an error or a warning. With these new methods, you can display the first error of a field.
Removed skip.group and only.group
Vest 5 removes the dedicated group interface for skip and only, and instead allows you to call skip and only directly within the groups.
const suite = create(() => { - skip.group('group1', 'username'); group('group1', () => { + skip('username'); test('username', 'message', () => { // ... }); }); });const suite = create(() => { - skip.group('group1'); group('group1', () => { + skip(true); test('field1', 'message', () => { // ... }); }); });Optional fields now take into account the suite params
In previous versions, optional fields only took into consideration whether the tests ran or not. In V5 optional fields also search the data object passed to the suite. If it has an object with the optional field in it, and the optional field is blank - the test will be considered valid even if it is not passing.
Server side validations are built-in
In previous versions, as a user of Vest you had to set up your own state-reset mechanism. Vest now has a
staticSuiteexport that does that for you.First-Class-Citizen typescript support
All of Vest's methods are now typed and make use of generics to enforce correct usage throughout your suite.
Dropped support for <ES2015
Vest 5 uses Javascript Proxies, which were introduced in ES2015. Therefore, Vest 5 no longer supports pre-ES2015 versions of Javascript. If you need to support older browsers, you can still use Vest 4.
v5.0.0Compare Source
v4.6.9Compare Source
v4.6.8Compare Source
v4.6.7Compare Source
v4.6.6Compare Source
v4.6.5Compare Source
v4.6.4Compare Source
v4.6.3Compare Source
v4.6.2Compare Source
v4.6.1Compare Source
v4.6.0Compare Source
d7d0893feat(vest): Add boolean control for optional fields (#910) (Evyatar)8284ce2patch(vest): use string module from vest-utils (ealush)v4.5.0Compare Source
9b46fb6types(vest): add suiteName type to SuiteResult (ealush)b94b568patch(vest): use suiteSelectors from vest top level api in parser module (ealush)24e4ceaadded(vest): expose suiteSelectors as a top level API (ealush)1812e68patch(vest): remove unneeded base object in context assignment (ealush)590ad76patch(vest): Remove suiteSummary from context (ealush)e8dbbc9patch(vest): move suite selectors out into their own module for easier consumption by external sources (#906) (Evyatar)8597af2patch(vest): Call done callback immediately when field does not exist (ealush)17c39f6types(vest): improve getFailures overload (ealush)d4d4cb1patch(vest): Remove unneeded empty check in hasRemainigTests (ealush)v4.4.2Compare Source
b062abbtypes(vest): Add a dedicated VestTests plural type (ealush)f28a1a6tests(vest): Completely remove itWithContext (ealush)v4.4.1Compare Source
870a2edtests(vest): Remove most itWithContext instances from tests (ealush)1944122patch(vest): use isolate hook directly (ealush)33cd6d9patch(vest): Use the same test mutation function everywhere (ealush)v4.4.0a5db77ctests(vest): Add sanity tests for group validity (ealush)49096b1patch(vest): replace Cursor with IsolateCursor (#869) (Evyatar)4dbb9c0minor(vest): isValidByGroup (#856) (Evyatar)6a67315tests(vest): make test.memo test more resilient (ealush)v4.0.0: 4️⃣ Vest 4Compare Source
Vest's fourth major, a full rewrite in typescript, many new features and bugfixes.
The migration guide can be found here
Configuration
📅 Schedule: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.