(newMajor: number)
| 17 | |
| 18 | // Fake version by writing over the @angular/core version, since that's what the CLI checks. |
| 19 | const fakeCoreVersion = async (newMajor: number) => { |
| 20 | const tmpPkgJson = JSON.parse(originalAngularCorePkgJson); |
| 21 | tmpPkgJson.version = `${newMajor}.0.0`; |
| 22 | await writeFile(angularCorePkgPath, JSON.stringify(tmpPkgJson)); |
| 23 | }; |
| 24 | |
| 25 | // Major should succeed, but we don't need to test it here since it's tested everywhere else. |
| 26 | // Major+1 and -1 should fail architect commands, but allow other commands. |
no test coverage detected