Match-id-4c973c693fe820cab95bc74a5230078351fbf402

This commit is contained in:
* 2023-08-03 17:26:28 +08:00
parent 1365e17d83
commit cb68f9dba8
64 changed files with 95 additions and 92 deletions

View File

@ -13,6 +13,8 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7", "@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
"@babel/plugin-proposal-object-rest-spread": "7.16.7", "@babel/plugin-proposal-object-rest-spread": "7.16.7",
"@babel/plugin-proposal-optional-chaining": "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-syntax-jsx": "7.16.7",
"@babel/plugin-transform-arrow-functions": "7.16.7", "@babel/plugin-transform-arrow-functions": "7.16.7",
"@babel/plugin-transform-block-scoped-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/plugin-transform-template-literals": "7.16.7",
"@babel/preset-env": "7.16.7", "@babel/preset-env": "7.16.7",
"@babel/preset-typescript": "7.16.7", "@babel/preset-typescript": "7.16.7",
"@babel/runtime": "8.0.0-alpha.1",
"@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0", "@rollup/plugin-replace": "^4.0.0",

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('Inula.act function Test', () => {
it('The act can wait for the useEffect update to complete.', function () { it('The act can wait for the useEffect update to complete.', function () {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('Class refs Test', () => {
it('Parent can get Child instance by refs', function () { it('Parent can get Child instance by refs', function () {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('Component Error Test', () => { describe('Component Error Test', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('Context Test', () => { describe('Context Test', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('Diff Algorithm', () => { describe('Diff Algorithm', () => {
it('null should diff correctly', () => { it('null should diff correctly', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('ForwardRef', () => { describe('ForwardRef', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { Text } from '../jest/commonComponents';
import { getLogUtils } from '../jest/testUtils'; import { getLogUtils } from '../jest/testUtils';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('FunctionComponent Test', () => { describe('FunctionComponent Test', () => {
it('渲染无状态组件', () => { it('渲染无状态组件', () => {
const App = props => { const App = props => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('useCallback Hook Test', () => {
const { useState, useCallback } = Inula; const { useState, useCallback } = Inula;

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('useContext Hook Test', () => {
const { useState, useContext, createContext, act, unmountComponentAtNode } = Inula; const { useState, useContext, createContext, act, unmountComponentAtNode } = Inula;

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../../jest/testUtils';
import { Text } from '../../jest/commonComponents'; import { Text } from '../../jest/commonComponents';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { Text } from '../../jest/commonComponents';
import { getLogUtils } from '../../jest/testUtils'; import { getLogUtils } from '../../jest/testUtils';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../../jest/testUtils';
import { Text } from '../../jest/commonComponents'; import { Text } from '../../jest/commonComponents';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../../jest/testUtils';
import { Text } from '../../jest/commonComponents'; import { Text } from '../../jest/commonComponents';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('useReducer Hook Test', () => {
const { useReducer } = Inula; const { useReducer } = Inula;

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../../jest/testUtils';
import { Text } from '../../jest/commonComponents'; import { Text } from '../../jest/commonComponents';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../../jest/testUtils';
import { Text } from '../../jest/commonComponents'; import { Text } from '../../jest/commonComponents';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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', () => { describe('JSX Element test', () => {
it('symbol attribute prevent cloneDeep unlimited loop', function () { it('symbol attribute prevent cloneDeep unlimited loop', function () {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { Text } from '../jest/commonComponents';
import { getLogUtils } from '../jest/testUtils'; import { getLogUtils } from '../jest/testUtils';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('LifeCycle Test', () => { describe('LifeCycle Test', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('Memo Test', () => { describe('Memo Test', () => {
it('Memo should not make the path wrong', function () { it('Memo should not make the path wrong', function () {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
import dispatchChangeEvent from '../utils/dispatchChangeEvent'; import dispatchChangeEvent from '../utils/dispatchChangeEvent';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { Text } from '../jest/commonComponents';
import { getLogUtils } from '../jest/testUtils'; import { getLogUtils } from '../jest/testUtils';

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('Dom Attribute', () => { describe('Dom Attribute', () => {
it('属性值为null或undefined时不会设置此属性', () => { it('属性值为null或undefined时不会设置此属性', () => {

View File

@ -14,7 +14,7 @@
*/ */
/* eslint-disable @typescript-eslint/no-empty-function */ /* 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'; import { getLogUtils } from '../jest/testUtils';
describe('Dom Input', () => { describe('Dom Input', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('Dom Select', () => { describe('Dom Select', () => {
it('设置value', () => { it('设置value', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('Dom Textarea', () => { describe('Dom Textarea', () => {
it('设置value', () => { it('设置value', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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'; import * as TestUtils from '../jest/testUtils';
function dispatchChangeEvent(input) { function dispatchChangeEvent(input) {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('合成焦点事件', () => { describe('合成焦点事件', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('Keyboard Event', () => { describe('Keyboard Event', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
describe('mouseenter和mouseleave事件测试', () => { describe('mouseenter和mouseleave事件测试', () => {
let container; let container;

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('MouseEvent Test', () => { describe('MouseEvent Test', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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 { getLogUtils } from '../jest/testUtils';
describe('合成滚轮事件', () => { describe('合成滚轮事件', () => {

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
describe('测试store中的混合类型变化', () => { describe('测试store中的混合类型变化', () => {

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,9 +14,9 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import * as LogUtils from '../../jest/logUtils'; 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,8 +14,8 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler'; import { createStore } from '../../../../src/inulax/store/StoreHandler';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,11 +14,11 @@
*/ */
//@ts-ignore //@ts-ignore
import Inula from '../../../../libs/inula/index'; import Inula from '../../../../src/index';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { useLogStore } from './store'; import { useLogStore } from './store';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; 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; const { unmountComponentAtNode } = Inula;

View File

@ -13,9 +13,9 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { clearStore, createStore, useStore } from '../../../../libs/inula/src/inulax/store/StoreHandler'; import { clearStore, createStore, useStore } from '../../../../src/inulax/store/StoreHandler';
import { OBSERVER_KEY } from '../../../../libs/inula/src/inulax/Constants'; import { OBSERVER_KEY } from '../../../../src/inulax/Constants';
import { App, Text, triggerClickEvent } from '../../jest/commonComponents'; import { App, Text, triggerClickEvent } from '../../jest/commonComponents';
describe('测试对store.state对象进行深度克隆', () => { describe('测试对store.state对象进行深度克隆', () => {

View File

@ -14,7 +14,7 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { useLogStore } from './store'; import { useLogStore } from './store';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -14,8 +14,8 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler'; import { createStore } from '../../../../src/inulax/store/StoreHandler';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -13,8 +13,8 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { createStore } from '../../../../libs/inula/src/inulax/store/StoreHandler'; import { createStore } from '../../../../src/inulax/store/StoreHandler';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
const { unmountComponentAtNode } = Inula; const { unmountComponentAtNode } = Inula;

View File

@ -1,4 +1,4 @@
import { resolveMutation } from '../../../../libs/inula/src/inulax/CommonUtils'; import { resolveMutation } from '../../../../src/inulax/CommonUtils';
describe('Mutation resolve', () => { describe('Mutation resolve', () => {
it('should resolve mutation different types', () => { it('should resolve mutation different types', () => {

View File

@ -13,8 +13,8 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import { createStore } from '../../../../libs/inula'; import { createStore } from '../../../../src/index';
import { watch } from '../../../../libs/inula'; import { watch } from '../../../../src/index';
describe('watch', () => { describe('watch', () => {
it('shouhld watch primitive state variable', async () => { it('shouhld watch primitive state variable', async () => {

View File

@ -14,13 +14,13 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { import {
createStore, createStore,
applyMiddleware, applyMiddleware,
combineReducers, combineReducers,
bindActionCreators, bindActionCreators,
} from '../../../../libs/inula/src/inulax/adapters/redux'; } from '../../../../src/inulax/adapters/redux';
import { describe, it, expect } from '@jest/globals'; import { describe, it, expect } from '@jest/globals';
describe('Redux adapter', () => { describe('Redux adapter', () => {

View File

@ -13,8 +13,8 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { createStore, applyMiddleware, thunk } from '../../../../libs/inula/src/inulax/adapters/redux'; import { createStore, applyMiddleware, thunk } from '../../../../src/inulax/adapters/redux';
import { describe, it, expect } from '@jest/globals'; import { describe, it, expect } from '@jest/globals';
describe('Redux thunk', () => { describe('Redux thunk', () => {

View File

@ -14,7 +14,7 @@
*/ */
//@ts-ignore //@ts-ignore
import * as Inula from '../../../../libs/inula/index'; import * as Inula from '../../../../src/index';
import { import {
batch, batch,
connect, connect,
@ -25,10 +25,10 @@ import {
useStore, useStore,
createSelectorHook, createSelectorHook,
createDispatchHook, createDispatchHook,
} from '../../../../libs/inula/src/inulax/adapters/redux'; } from '../../../../src/inulax/adapters/redux';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { describe, it, beforeEach, afterEach, expect } from '@jest/globals'; 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 BUTTON = 'button';
const BUTTON2 = 'button2'; const BUTTON2 = 'button2';

View File

@ -1,7 +1,7 @@
import { createElement } from '../../../../libs/inula/src/external/JSXElement'; import { createElement } from '../../../../src/external/JSXElement';
import { createDomTextVNode } from '../../../../libs/inula/src/renderer/vnode/VNodeCreator'; import { createDomTextVNode } from '../../../../src/renderer/vnode/VNodeCreator';
import { createStore } from '../../../../libs/inula/src/inulax/adapters/redux'; import { createStore } from '../../../../src/inulax/adapters/redux';
import { connect } from '../../../../libs/inula/src/inulax/adapters/reduxReact'; import { connect } from '../../../../src/inulax/adapters/reduxReact';
createStore((state: number = 0, action): number => { createStore((state: number = 0, action): number => {
if (action.type === 'add') return state + 1; if (action.type === 'add') return state + 1;

View File

@ -13,11 +13,11 @@
* See the Mulan PSL v2 for more details. * 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 * 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 { 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'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
describe('测试 Class VNode 清除时,对引用清除', () => { describe('测试 Class VNode 清除时,对引用清除', () => {

View File

@ -13,9 +13,9 @@
* See the Mulan PSL v2 for more details. * 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 * 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -13,9 +13,9 @@
* See the Mulan PSL v2 for more details. * 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 * 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 { App, Text, triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -13,11 +13,11 @@
* See the Mulan PSL v2 for more details. * 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 * 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 { 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'; import { describe, it, beforeEach, afterEach, expect } from '@jest/globals';
describe('测试 Class VNode 清除时,对引用清除', () => { describe('测试 Class VNode 清除时,对引用清除', () => {

View File

@ -13,11 +13,11 @@
* See the Mulan PSL v2 for more details. * 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 * 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 { 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'; import { describe, it, beforeEach, afterEach, expect } from '@jest/globals';
describe('测试VNode清除时对引用清除', () => { describe('测试VNode清除时对引用清除', () => {

View File

@ -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'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
describe('Using deep variables', () => { describe('Using deep variables', () => {

View File

@ -14,7 +14,7 @@
*/ */
//@ts-ignore //@ts-ignore
import Inula, { createStore } from '../../../../libs/inula/index'; import Inula, { createStore } from '../../../../src/index';
import { triggerClickEvent } from '../../jest/commonComponents'; import { triggerClickEvent } from '../../jest/commonComponents';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';

View File

@ -13,8 +13,8 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import { createProxy } from '../../../../libs/inula/src/inulax/proxy/ProxyHandler'; import { createProxy } from '../../../../src/inulax/proxy/ProxyHandler';
import { readonlyProxy } from '../../../../libs/inula/src/inulax/proxy/readonlyProxy'; import { readonlyProxy } from '../../../../src/inulax/proxy/readonlyProxy';
import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals';
describe('Proxy', () => { describe('Proxy', () => {

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
import * as Inula from '../../../libs/inula/index'; import * as Inula from '../../../src/index';
function App() { function App() {
return <></>; return <></>;

View File

@ -14,7 +14,7 @@
*/ */
// eslint-disable-next-line @typescript-eslint/no-unused-vars // 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'; import { getLogUtils } from './testUtils';
export const App = props => { export const App = props => {

View File

@ -20,4 +20,4 @@ global.MessageChannel = function MessageChannel() {
postMessage() {}, postMessage() {},
}; };
}; };
global.__VERSION__ = require('../../../libs/inula/package.json').version; global.__VERSION__ = require('../../../package.json').version;

View File

@ -13,7 +13,7 @@
* See the Mulan PSL v2 for more details. * 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'; import { getLogUtils } from './testUtils';
const LogUtils = getLogUtils(); const LogUtils = getLogUtils();