mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-15 05:51:20 +00:00
chore(deps): upgrade jest to v30
Bump jest ^29.5.0 -> ^30.4.2, @types/jest ^29.5.14 -> ^30.0.0, and ts-jest ^29.4.6 -> ^29.4.11. @types/jest@30 removes the deprecated `toThrowError` matcher type, so migrate every `.toThrowError()` assertion to `.toThrow()`.
This commit is contained in:
@@ -35,16 +35,16 @@ describe('parseServicePreferences', () => {
|
||||
});
|
||||
|
||||
it('throws on unknown service name', () => {
|
||||
expect(() => parseServicePreferences('foobar')).toThrowError(/unknown service "foobar"/);
|
||||
expect(() => parseServicePreferences('foobar')).toThrow(/unknown service "foobar"/);
|
||||
});
|
||||
|
||||
it('throws on a collision in the search tier', () => {
|
||||
expect(() => parseServicePreferences('elasticsearch,opensearch')).toThrowError(
|
||||
expect(() => parseServicePreferences('elasticsearch,opensearch')).toThrow(
|
||||
/collision in tier "search"/
|
||||
);
|
||||
});
|
||||
|
||||
it('throws on a collision in the cache tier', () => {
|
||||
expect(() => parseServicePreferences('redis,valkey')).toThrowError(/collision in tier "cache"/);
|
||||
expect(() => parseServicePreferences('redis,valkey')).toThrow(/collision in tier "cache"/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user