Skip to content

Commit

Permalink
fix(testing): fix migration for cypress (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored and bcabanes committed Dec 6, 2019
1 parent 2d761f6 commit 29176f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/cypress/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
"version": "8.2.0-beta.1",
"description": "Update Cypress Config",
"factory": "./src/migrations/update-8-2-0/update-8-2-0"
},
"update-9.0.0": {
"version": "9.0.0-beta.1",
"description": "Update Cypress to 3.6.1",
"factory": "./src/migrations/update-9-0-0/update-9-0-0"
}
},
"packageJsonUpdates": {
"9.0.0": {
"version": "9.0.0-beta.1",
"packages": {
"@nrwl/cypress": {
"version": "9.0.0",
"alwaysAddToPackageJson": false
},
"cypress": {
"version": "9.0.0",
"version": "3.6.1",
"alwaysAddToPackageJson": false
}
}
Expand Down
10 changes: 10 additions & 0 deletions packages/cypress/src/migrations/update-9-0-0/update-9-0-0.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { updatePackagesInPackageJson } from '@nrwl/workspace';

import { join } from 'path';

export default () => {
return updatePackagesInPackageJson(
join(__dirname, '../../../migrations.json'),
'9.0.0'
);
};

0 comments on commit 29176f8

Please sign in to comment.