-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T/209: Upgraded dependencies #246
Conversation
R- because of some issues with CI occurred. |
Some mocks from one test affected to the another one.
Ok, ready. |
I'll try to update these myself. |
OK, I'm predicting a problem. Chain and Sinon are installed by ckeditor5-dev-tests. The problem is that they are used both for that package's tests and for the CKE5 tests. So when we'll update them they will crash CKE5's tests. Am I right? |
I hope no because Sinon and Chain are defined in devDependencies. But I'm not sure… |
Yes, I was right. After I updated these dependencies so ckeditor5-dev-tests uses the same version of Chai and Sinon in prod and dev modes the CKE5 tests start to throw. Currently, both packages are listed twice in So:
Only then this PR will make sense. |
Done in eb50099.
Because I created the release tool tasks, I know how and when I can break the process without any effects. But with the translations, I don't even want to call these tasks. After calling |
@@ -60,7 +60,7 @@ describe( 'utils', () => { | |||
it( 'should return only ckeditor5 directories', () => { | |||
const workspacePath = '/workspace/path'; | |||
const sourceDirectories = [ 'tools', 'ckeditor5', 'ckeditor5-core', '.bin', 'ckeditor5-plugin-image' ]; | |||
sandbox.stub( tools, 'getDirectories', () => sourceDirectories ); | |||
sandbox.stub( tools, 'getDirectories' ).callsFake( () => sourceDirectories ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be just .returns( sourceDirectories )
. Am I right?
I fixed all the tests. After merging this PR, would be nice to read the migration guide from 1.x to 2.x and from 2.x to 3.x. Along with the changes in this PR, the following branches in the repositories have to merged:
Unfortunately, upgrade Sinon to the latest version caused one error in our test. We cannot stub |
So does this test pass now or not? If not, then we need to look for workaround. We cannot leave it like this. |
All works fine. I did a workaround. |
{
"packages": "packages/",
"dependencies": {
"@ckeditor/ckeditor5-adapter-ckfinder": "ckeditor/ckeditor5-adapter-ckfinder#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-autoformat": "ckeditor/ckeditor5-autoformat",
"@ckeditor/ckeditor5-basic-styles": "ckeditor/ckeditor5-basic-styles",
"@ckeditor/ckeditor5-block-quote": "ckeditor/ckeditor5-block-quote",
"@ckeditor/ckeditor5-build-classic": "ckeditor/ckeditor5-build-classic",
"@ckeditor/ckeditor5-clipboard": "ckeditor/ckeditor5-clipboard",
"@ckeditor/ckeditor5-core": "ckeditor/ckeditor5-core#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-editor-balloon-toolbar": "ckeditor/ckeditor5-editor-balloon-toolbar#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-editor-classic": "ckeditor/ckeditor5-editor-classic",
"@ckeditor/ckeditor5-editor-inline": "ckeditor/ckeditor5-editor-inline",
"@ckeditor/ckeditor5-engine": "ckeditor/ckeditor5-engine#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-enter": "ckeditor/ckeditor5-enter",
"@ckeditor/ckeditor5-heading": "ckeditor/ckeditor5-heading",
"@ckeditor/ckeditor5-image": "ckeditor/ckeditor5-image",
"@ckeditor/ckeditor5-link": "ckeditor/ckeditor5-link#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-list": "ckeditor/ckeditor5-list",
"@ckeditor/ckeditor5-markdown-gfm": "ckeditor/ckeditor5-markdown-gfm",
"@ckeditor/ckeditor5-paragraph": "ckeditor/ckeditor5-paragraph",
"@ckeditor/ckeditor5-presets": "ckeditor/ckeditor5-presets",
"@ckeditor/ckeditor5-theme-lark": "ckeditor/ckeditor5-theme-lark",
"@ckeditor/ckeditor5-typing": "ckeditor/ckeditor5-typing",
"@ckeditor/ckeditor5-ui": "ckeditor/ckeditor5-ui#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-undo": "ckeditor/ckeditor5-undo",
"@ckeditor/ckeditor5-upload": "ckeditor/ckeditor5-upload#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-utils": "ckeditor/ckeditor5-utils#t/ckeditor5-dev/209",
"@ckeditor/ckeditor5-widget": "ckeditor/ckeditor5-widget#t/ckeditor5-dev/209"
}
} |
Incorrect changes:
|
Fixed. |
All green and looks fine. |
Suggested merge commit message (convention)
Internal: Upgraded dependencies. Closes #209. Closes #236. Closes #237.