mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 21:14:55 +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:
@@ -13,14 +13,14 @@ describe('isKind / assertKind', () => {
|
||||
|
||||
it('rejects other strings', () => {
|
||||
expect(isKind('taco')).toBe(false);
|
||||
expect(() => assertKind('taco')).toThrowError(/`kind` must be 'store' or 'extension'/);
|
||||
expect(() => assertKind('taco')).toThrow(/`kind` must be 'store' or 'extension'/);
|
||||
});
|
||||
|
||||
it('rejects empty input', () => {
|
||||
expect(() => assertKind('')).toThrowError(/`kind` must be 'store' or 'extension'/);
|
||||
expect(() => assertKind('')).toThrow(/`kind` must be 'store' or 'extension'/);
|
||||
});
|
||||
|
||||
it('rejects non-string input', () => {
|
||||
expect(() => assertKind(undefined)).toThrowError(/`kind` must be 'store' or 'extension'/);
|
||||
expect(() => assertKind(undefined)).toThrow(/`kind` must be 'store' or 'extension'/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user