|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | import { changesSummaryMatcher, Editor, LocalRegistry, numberOfImpactedOperationsMatcher } from './helpers' |
18 | | -import { |
19 | | - BREAKING_CHANGE_TYPE, |
20 | | - BUILD_TYPE, |
21 | | - NON_BREAKING_CHANGE_TYPE, |
22 | | - SEMI_BREAKING_CHANGE_TYPE, |
23 | | - VERSION_STATUS, |
24 | | -} from '../src' |
| 18 | +import { BREAKING_CHANGE_TYPE, BUILD_TYPE, NON_BREAKING_CHANGE_TYPE, RISKY_CHANGE_TYPE, VERSION_STATUS } from '../src' |
25 | 19 |
|
26 | 20 | const portal = new LocalRegistry('new-deprecated') |
27 | 21 |
|
@@ -62,13 +56,13 @@ describe('Semi-breaking changes test', () => { |
62 | 56 | [NON_BREAKING_CHANGE_TYPE]: 1, |
63 | 57 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
64 | 58 | // @ts-ignore |
65 | | - [SEMI_BREAKING_CHANGE_TYPE]: 1, |
| 59 | + [RISKY_CHANGE_TYPE]: 1, |
66 | 60 | })) |
67 | 61 | expect(result).toEqual(numberOfImpactedOperationsMatcher({ |
68 | 62 | [NON_BREAKING_CHANGE_TYPE]: 1, |
69 | 63 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
70 | 64 | // @ts-ignore |
71 | | - [SEMI_BREAKING_CHANGE_TYPE]: 1, |
| 65 | + [RISKY_CHANGE_TYPE]: 1, |
72 | 66 | })) |
73 | 67 | }) |
74 | 68 |
|
@@ -108,13 +102,13 @@ describe('Semi-breaking changes test', () => { |
108 | 102 | [BREAKING_CHANGE_TYPE]: 1, |
109 | 103 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
110 | 104 | // @ts-ignore |
111 | | - [SEMI_BREAKING_CHANGE_TYPE]: 1, |
| 105 | + [RISKY_CHANGE_TYPE]: 1, |
112 | 106 | })) |
113 | 107 | expect(result).toEqual(numberOfImpactedOperationsMatcher({ |
114 | 108 | [BREAKING_CHANGE_TYPE]: 1, |
115 | 109 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
116 | 110 | // @ts-ignore |
117 | | - [SEMI_BREAKING_CHANGE_TYPE]: 1, |
| 111 | + [RISKY_CHANGE_TYPE]: 1, |
118 | 112 | })) |
119 | 113 | }) |
120 | 114 |
|
@@ -151,12 +145,12 @@ describe('Semi-breaking changes test', () => { |
151 | 145 | expect(result).toEqual(changesSummaryMatcher({ |
152 | 146 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
153 | 147 | // @ts-ignore |
154 | | - [SEMI_BREAKING_CHANGE_TYPE]: 2, |
| 148 | + [RISKY_CHANGE_TYPE]: 2, |
155 | 149 | })) |
156 | 150 | expect(result).toEqual(numberOfImpactedOperationsMatcher({ |
157 | 151 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
158 | 152 | // @ts-ignore |
159 | | - [SEMI_BREAKING_CHANGE_TYPE]: 2, |
| 153 | + [RISKY_CHANGE_TYPE]: 2, |
160 | 154 | })) |
161 | 155 | }) |
162 | 156 |
|
@@ -193,13 +187,13 @@ describe('Semi-breaking changes test', () => { |
193 | 187 | expect(result).toEqual(changesSummaryMatcher({ |
194 | 188 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
195 | 189 | // @ts-ignore |
196 | | - [SEMI_BREAKING_CHANGE_TYPE]: 3, |
| 190 | + [RISKY_CHANGE_TYPE]: 3, |
197 | 191 | [NON_BREAKING_CHANGE_TYPE]: 1, |
198 | 192 | })) |
199 | 193 | expect(result).toEqual(numberOfImpactedOperationsMatcher({ |
200 | 194 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
201 | 195 | // @ts-ignore |
202 | | - [SEMI_BREAKING_CHANGE_TYPE]: 1, |
| 196 | + [RISKY_CHANGE_TYPE]: 1, |
203 | 197 | [NON_BREAKING_CHANGE_TYPE]: 1, |
204 | 198 | })) |
205 | 199 | }) |
|
0 commit comments