Skip to content

Commit

Permalink
fix(Playwright): Fixes Imports in MockContentPluginWrapper
Browse files Browse the repository at this point in the history
Also keeping reference to `babel-jest` for version 27 as a left-over
from previous results to debug failed module-resolution because
of typo in tsconfig.json. It seems to make sense, to keep this in
sync with "rolled back to Jest 27" to work around
playwright-community/jest-playwright#796
  • Loading branch information
mmichaelis committed May 19, 2022
1 parent 68f690d commit e5265cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions itest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@types/node": "^16.11.26",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"babel-jest": "^27.5.1",
"enhanced-resolve": "^5.9.3",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
Expand Down
11 changes: 2 additions & 9 deletions itest/src/aut/MockContentPluginWrapper.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import { Wrapper } from "./Wrapper";
//import MockContentPlugin from "@coremedia/ckeditor5-coremedia-studio-integration-mock/src/content/MockContentPlugin";
import { ClassicEditorWrapper } from "./ClassicEditorWrapper";
//import { MockContentConfig } from "@coremedia/ckeditor5-coremedia-studio-integration-mock/src/content/MockContent";
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
import MockContentPlugin from "@coremedia/ckeditor5-coremedia-studio-integration-mock/content/MockContentPlugin";
import { MockContentConfig } from "@coremedia/ckeditor5-coremedia-studio-integration-mock/content/MockContent";

// TODO: Workaround: We cannot resolve modules currently.
declare interface MockContentConfig {
}
declare class MockContentPlugin extends Plugin {
addContents(...data: MockContentConfig[]): void;
}
/**
* Provides access to the `MockContentPlugin`.
*/
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5265cb

Please sign in to comment.