Skip to content

Commit

Permalink
Remove info about puppeter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Sep 5, 2024
1 parent bedc30f commit 2279892
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docs/getting-started/integrations/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,6 @@ The `moduleResolution` option of the TypeScript configuration determines the alg

Jest is the default test runner used by many Angular apps. Unfortunately, Jest does not use a real browser. Instead, it runs tests in Node.js with the use of JSDOM. JSDOM is not a complete DOM implementation and while it is apparently sufficient for standard apps, it is not able to polyfill all the DOM APIs that CKEditor 5 requires.

A better approach to test the component inside a fully-fledged web browser, implementing a complete DOM, is to use [`jest-puppeteer`](https://github.com/smooth-code/jest-puppeteer).

If this is not possible, you can use the following mocks to make the tests pass:

```javascript
Expand Down
2 changes: 0 additions & 2 deletions docs/getting-started/integrations/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ For more information, please refer to the {@link getting-started/setup/ui-langua

Jest is the default test runner used by many React apps. Unfortunately, Jest does not use a real browser. Instead, it runs tests in Node.js with the use of JSDOM. JSDOM is not a complete DOM implementation and while it is apparently sufficient for standard apps, it is not able to polyfill all the DOM APIs that CKEditor 5 requires.

A better approach to test the component inside a fully-fledged web browser, implementing a complete DOM, is to use [`jest-puppeteer`](https://github.com/smooth-code/jest-puppeteer).

If this is not possible, you can use the following mock snippet:

```jsx
Expand Down
2 changes: 0 additions & 2 deletions docs/getting-started/integrations/vuejs-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,6 @@ For more information, refer to the {@link getting-started/setup/ui-language Sett

Jest is the default test runner used by many Vue apps. Unfortunately, Jest does not use a real browser. Instead, it runs tests in Node.js with the use of JSDOM. JSDOM is not a complete DOM implementation and while it is apparently sufficient for standard apps, it is not able to polyfill all the DOM APIs that CKEditor 5 requires.

A better approach to test the component inside a fully-fledged web browser, implementing a complete DOM, is to use [`jest-puppeteer`](https://github.com/smooth-code/jest-puppeteer).

If this is not possible, you can use the following mocks to make the tests pass:

```javascript
Expand Down

0 comments on commit 2279892

Please sign in to comment.