All files / src/migrations 2.17.2.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  1x 1x   1x         1x               1x 1x    
import { Rule } from '@angular-devkit/schematics';
import { updateDependency } from './utils/package-json';
import { tryRule } from './utils/rules';
 
const foundationAng = {
  name: '@backbase/foundation-ang',
  version: '^4.34.0',
};
 
const manualProcess = `
## Upgrade '@backbase/foundation-ang'
 
Make sure the version of ${foundationAng.name} is ${foundationAng.version}:
 
    npm install --save ${foundationAng.name}@${foundationAng.version}
`;
 
export default function (): Rule {
  return tryRule(updateDependency(foundationAng.name, foundationAng.version), manualProcess);
}