Match-id-758a253f82ff161d1dbda79eded1daac6cc6e376
This commit is contained in:
commit
43b9cbb2a0
|
@ -13,6 +13,8 @@
|
|||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.16.7",
|
||||
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
||||
"@babel/plugin-proposal-private-methods": "7.16.7",
|
||||
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
|
||||
"@babel/plugin-syntax-jsx": "7.16.7",
|
||||
"@babel/plugin-transform-arrow-functions": "7.16.7",
|
||||
"@babel/plugin-transform-block-scoped-functions": "7.16.7",
|
||||
|
@ -33,6 +35,7 @@
|
|||
"@babel/plugin-transform-template-literals": "7.16.7",
|
||||
"@babel/preset-env": "7.16.7",
|
||||
"@babel/preset-typescript": "7.16.7",
|
||||
"@babel/runtime": "8.0.0-alpha.1",
|
||||
"@rollup/plugin-babel": "^5.3.1",
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@rollup/plugin-replace": "^4.0.0",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import Inula, { render, useState, act, useEffect } from '../../../libs/inula/index';
|
||||
import Inula, { render, useState, act, useEffect } from '../../../src/index';
|
||||
|
||||
describe('Inula.act function Test', () => {
|
||||
it('The act can wait for the useEffect update to complete.', function () {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Class refs Test', () => {
|
||||
it('Parent can get Child instance by refs', function () {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('Component Error Test', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('Context Test', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Diff Algorithm', () => {
|
||||
it('null should diff correctly', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('ForwardRef', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { Text } from '../jest/commonComponents';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
describe('FunctionComponent Test', () => {
|
||||
it('渲染无状态组件', () => {
|
||||
const App = props => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
|
||||
describe('useCallback Hook Test', () => {
|
||||
const { useState, useCallback } = Inula;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
|
||||
describe('useContext Hook Test', () => {
|
||||
const { useState, useContext, createContext, act, unmountComponentAtNode } = Inula;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
|
||||
describe('useReducer Hook Test', () => {
|
||||
const { useReducer } = Inula;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { getLogUtils } from '../../jest/testUtils';
|
||||
import { Text } from '../../jest/commonComponents';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('JSX Element test', () => {
|
||||
it('symbol attribute prevent cloneDeep unlimited loop', function () {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { Text } from '../jest/commonComponents';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('LifeCycle Test', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Memo Test', () => {
|
||||
it('Memo should not make the path wrong', function () {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
import dispatchChangeEvent from '../utils/dispatchChangeEvent';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { Text } from '../jest/commonComponents';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Dom Attribute', () => {
|
||||
it('属性值为null或undefined时,不会设置此属性', () => {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('Dom Input', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Dom Select', () => {
|
||||
it('设置value', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('Dom Textarea', () => {
|
||||
it('设置value', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import * as TestUtils from '../jest/testUtils';
|
||||
|
||||
function dispatchChangeEvent(input) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('合成焦点事件', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('Keyboard Event', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
describe('mouseenter和mouseleave事件测试', () => {
|
||||
let container;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('MouseEvent Test', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from '../jest/testUtils';
|
||||
|
||||
describe('合成滚轮事件', () => {
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
|
||||
describe('测试store中的混合类型变化', () => {
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { createStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import Inula from '../../../../libs/inula/index';
|
||||
import Inula from '../../../../src/index';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { useLogStore } from './store';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { createStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
|
||||
const { unmountComponentAtNode } = Inula;
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { OBSERVER_KEY } from '../../../../libs/inula/src/inulax/Constants';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { OBSERVER_KEY } from '../../../../src/inulax/Constants';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
|
||||
describe('测试对store.state对象进行深度克隆', () => {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { useLogStore } from './store';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { createStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { createStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
|
||||
const { unmountComponentAtNode } = Inula;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { resolveMutation } from '../../../../libs/inula/src/inulax/CommonUtils';
|
||||
import { resolveMutation } from '../../../../src/inulax/CommonUtils';
|
||||
|
||||
describe('Mutation resolve', () => {
|
||||
it('should resolve mutation different types', () => {
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import { createStore } from '../../../../libs/inula';
|
||||
import { watch } from '../../../../libs/inula';
|
||||
import { createStore } from '../../../../src/index';
|
||||
import { watch } from '../../../../src/index';
|
||||
|
||||
describe('watch', () => {
|
||||
it('shouhld watch primitive state variable', async () => {
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import {
|
||||
createStore,
|
||||
applyMiddleware,
|
||||
combineReducers,
|
||||
bindActionCreators,
|
||||
} from '../../../../libs/inula/src/inulax/adapters/redux';
|
||||
} from '../../../../src/inulax/adapters/redux';
|
||||
import { describe, it, expect } from '@jest/globals';
|
||||
|
||||
describe('Redux adapter', () => {
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import { createStore, applyMiddleware, thunk } from '../../../../libs/inula/src/inulax/adapters/redux';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import { createStore, applyMiddleware, thunk } from '../../../../src/inulax/adapters/redux';
|
||||
import { describe, it, expect } from '@jest/globals';
|
||||
|
||||
describe('Redux thunk', () => {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import {
|
||||
batch,
|
||||
connect,
|
||||
|
@ -25,10 +25,10 @@ import {
|
|||
useStore,
|
||||
createSelectorHook,
|
||||
createDispatchHook,
|
||||
} from '../../../../libs/inula/src/inulax/adapters/redux';
|
||||
} from '../../../../src/inulax/adapters/redux';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, it, beforeEach, afterEach, expect } from '@jest/globals';
|
||||
import { ReduxStoreHandler } from '../../../../libs/inula/src/inulax/adapters/redux';
|
||||
import { ReduxStoreHandler } from '../../../../src/inulax/adapters/redux';
|
||||
|
||||
const BUTTON = 'button';
|
||||
const BUTTON2 = 'button2';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { createElement } from '../../../../libs/inula/src/external/JSXElement';
|
||||
import { createDomTextVNode } from '../../../../libs/inula/src/renderer/vnode/VNodeCreator';
|
||||
import { createStore } from '../../../../libs/inula/src/inulax/adapters/redux';
|
||||
import { connect } from '../../../../libs/inula/src/inulax/adapters/reduxReact';
|
||||
import { createElement } from '../../../../src/external/JSXElement';
|
||||
import { createDomTextVNode } from '../../../../src/renderer/vnode/VNodeCreator';
|
||||
import { createStore } from '../../../../src/inulax/adapters/redux';
|
||||
import { connect } from '../../../../src/inulax/adapters/reduxReact';
|
||||
|
||||
createStore((state: number = 0, action): number => {
|
||||
if (action.type === 'add') return state + 1;
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { getObserver } from '../../../../libs/inula/src/inulax/proxy/ProxyHandler';
|
||||
import { getObserver } from '../../../../src/inulax/proxy/ProxyHandler';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
describe('测试 Class VNode 清除时,对引用清除', () => {
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { getObserver } from '../../../../libs/inula/src/inulax/proxy/ProxyHandler';
|
||||
import { getObserver } from '../../../../src/inulax/proxy/ProxyHandler';
|
||||
import { describe, it, beforeEach, afterEach, expect } from '@jest/globals';
|
||||
|
||||
describe('测试 Class VNode 清除时,对引用清除', () => {
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../../libs/inula/index';
|
||||
import * as Inula from '../../../../src/index';
|
||||
import * as LogUtils from '../../jest/logUtils';
|
||||
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler';
|
||||
import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
|
||||
import { Text, triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { getObserver } from '../../../../libs/inula/src/inulax/proxy/ProxyHandler';
|
||||
import { getObserver } from '../../../../src/inulax/proxy/ProxyHandler';
|
||||
import { describe, it, beforeEach, afterEach, expect } from '@jest/globals';
|
||||
|
||||
describe('测试VNode清除时,对引用清除', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createStore, useStore } from '../../../../libs/inula';
|
||||
import { createStore, useStore } from '../../../../src/index';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
describe('Using deep variables', () => {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
//@ts-ignore
|
||||
import Inula, { createStore } from '../../../../libs/inula/index';
|
||||
import Inula, { createStore } from '../../../../src/index';
|
||||
import { triggerClickEvent } from '../../jest/commonComponents';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import { createProxy } from '../../../../libs/inula/src/inulax/proxy/ProxyHandler';
|
||||
import { readonlyProxy } from '../../../../libs/inula/src/inulax/proxy/readonlyProxy';
|
||||
import { createProxy } from '../../../../src/inulax/proxy/ProxyHandler';
|
||||
import { readonlyProxy } from '../../../../src/inulax/proxy/readonlyProxy';
|
||||
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
|
||||
|
||||
describe('Proxy', () => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
|
||||
function App() {
|
||||
return <></>;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
import * as Inula from '../../../libs/inula/index';
|
||||
import * as Inula from '../../../src/index';
|
||||
import { getLogUtils } from './testUtils';
|
||||
|
||||
export const App = props => {
|
||||
|
|
|
@ -20,4 +20,4 @@ global.MessageChannel = function MessageChannel() {
|
|||
postMessage() {},
|
||||
};
|
||||
};
|
||||
global.__VERSION__ = require('../../../libs/inula/package.json').version;
|
||||
global.__VERSION__ = require('../../../package.json').version;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
import { unmountComponentAtNode } from '../../../libs/inula/src/dom/DOMExternal';
|
||||
import { unmountComponentAtNode } from '../../../src/dom/DOMExternal';
|
||||
import { getLogUtils } from './testUtils';
|
||||
|
||||
const LogUtils = getLogUtils();
|
||||
|
|
Loading…
Reference in New Issue