mirror of
https://github.com/hanzoai/Detox.git
synced 2026-10-30 14:46:00 +00:00
23 lines
587 B
JavaScript
23 lines
587 B
JavaScript
const { assertSupportedVersion } = require('./validateAndPatchProjectConfig');
|
|
|
|
describe('assertSupportedVersion', () => {
|
|
test.each([
|
|
['27.2.5'],
|
|
['27.2.6-prerelease.0'],
|
|
['27.3.0'],
|
|
['28.0.0-alpha.1'],
|
|
['28.0.0'],
|
|
['28.1.0'],
|
|
['29.0.0-next.0'],
|
|
])('should pass for %j', (version) => {
|
|
expect(() => assertSupportedVersion(version)).not.toThrow();
|
|
});
|
|
|
|
test.each([
|
|
['26.0.0'],
|
|
['27.2.4'],
|
|
])('should throw an error for %j', (version) => {
|
|
expect(() => assertSupportedVersion(version)).toThrow(/unsupported jest.*version/);
|
|
});
|
|
});
|