Skip to content

Commit

Permalink
Fix tsc and test-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Mar 28, 2024
1 parent 7f4337e commit caecbbb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/vanilla-js-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lexical/vanilla-js-example",
"name": "@lexical/vanilla-js-plugin-example",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,20 @@ module.exports = {
'<rootDir>/packages/lexical-rich-text/src/index.ts',
'^@lexical/selection$':
'<rootDir>/packages/lexical-selection/src/index.ts',
'^@lexical/selection/src/__tests__/utils$':
'<rootDir>/packages/lexical-selection/src/__tests__/utils/index.ts',
'^@lexical/table$': '<rootDir>/packages/lexical-table/src/index.ts',
'^@lexical/text$': '<rootDir>/packages/lexical-text/src/index.ts',
'^@lexical/utils$': '<rootDir>/packages/lexical-utils/src/index.ts',
'^@lexical/yjs$': '<rootDir>/packages/lexical-yjs/src/index.ts',
'^@lexical/yjs/src/index$':
'<rootDir>/packages/lexical-yjs/src/index.ts',
'^lexical$': '<rootDir>/packages/lexical/src/index.ts',
'^lexical/src/([^/]+)$': '<rootDir>/packages/lexical/src/$1.ts',
'^lexical/src/__tests__/utils$':
'<rootDir>/packages/lexical/src/__tests__/utils/index.tsx',
'^lexical/src/nodes/([^/]+)$':
'<rootDir>/packages/lexical/src/nodes/$1.ts',
'^shared/canUseDOM$': '<rootDir>/packages/shared/src/canUseDOM.ts',
'^shared/caretFromPoint$':
'<rootDir>/packages/shared/src/caretFromPoint.ts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ import {ContentEditable} from '@lexical/react/LexicalContentEditable';
import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary';
import {HistoryPlugin} from '@lexical/react/LexicalHistoryPlugin';
import {RichTextPlugin} from '@lexical/react/LexicalRichTextPlugin';
import {$createQuoteNode} from '@lexical/rich-text/src';
import {$setBlocksType} from '@lexical/selection/src';
import {$createQuoteNode} from '@lexical/rich-text';
import {$setBlocksType} from '@lexical/selection';
import {
$createNodeSelection,
$createParagraphNode,
$createRangeSelection,
$createTextNode,
$getRoot,
$isNodeSelection,
$setSelection,
CAN_REDO_COMMAND,
CAN_UNDO_COMMAND,
CLEAR_HISTORY_COMMAND,
Expand All @@ -29,9 +33,6 @@ import {
UNDO_COMMAND,
} from 'lexical/src';
import {createTestEditor, TestComposer} from 'lexical/src/__tests__/utils';
import {$getRoot, $setSelection} from 'lexical/src/LexicalUtils';
import {$createParagraphNode} from 'lexical/src/nodes/LexicalParagraphNode';
import {$createTextNode} from 'lexical/src/nodes/LexicalTextNode';
import React from 'react';
import {createRoot} from 'react-dom/client';
import * as ReactTestUtils from 'react-dom/test-utils';
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@
],
"shared/warnOnlyOnce": ["./packages/shared/src/warnOnlyOnce.ts"],
"shared/environment": ["./packages/shared/src/environment.ts"],
"shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"]
"shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"],

"lexical/src": ["./packages/lexical/src/"],
"lexical/src/__tests__/utils": ["./packages/lexical/src/__tests__/utils/index.tsx"],
"@lexical/selection/src/__tests__/utils": ["./packages/lexical-selection/src/__tests__/utils/index.ts"],
"@lexical/yjs/src/index": ["./packages/lexical-yjs/src/index.ts"]
}
},
"include": ["./libdefs", "./packages"],
Expand Down

0 comments on commit caecbbb

Please sign in to comment.