Skip to content

Commit 4260418

Browse files
authored
Merge pull request #554 from ckeditor/ci/3860-dependabot
Internal: Bumped `vitest` and `@vitest/*` to latest version.
2 parents 3f3fc0e + 182a288 commit 4260418

File tree

3 files changed

+235
-156
lines changed

3 files changed

+235
-156
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"@types/react": "^18.0.0",
4747
"@types/react-dom": "^18.0.0",
4848
"@vitejs/plugin-react": "^4.3.1",
49-
"@vitest/browser": "^2.0.0",
50-
"@vitest/coverage-istanbul": "^2.0.0",
51-
"@vitest/ui": "^2.0.0",
49+
"@vitest/browser": "^2.1.4",
50+
"@vitest/coverage-istanbul": "^2.1.4",
51+
"@vitest/ui": "^2.1.4",
5252
"ckeditor5": "^43.1.0",
5353
"ckeditor5-premium-features": "^43.1.0",
5454
"coveralls": "^3.1.1",
@@ -70,7 +70,7 @@
7070
"semver": "^7.0.0",
7171
"typescript": "^5.0.0",
7272
"vite": "^5.3.1",
73-
"vitest": "^2.0.0",
73+
"vitest": "^2.1.4",
7474
"webdriverio": "^8.39.0"
7575
},
7676
"resolutions": {

tests/context/ckeditorcontext.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ describe( '<CKEditorContext> Component', () => {
366366

367367
await manager.all();
368368

369-
// A small hack - currently editors are ready one cycle after the context is ready.
370-
await new Promise( res => setTimeout( res ) );
369+
// Wait until `onReady()` callbacks have been executed.
370+
await new Promise( res => setTimeout( res, 1 ) );
371371

372372
expect( editorReadySpy ).toHaveBeenCalledTimes( 2 );
373373
} );

0 commit comments

Comments
 (0)