Skip to content

Commit

Permalink
test: mana-core import test
Browse files Browse the repository at this point in the history
  • Loading branch information
BroKun committed Aug 24, 2024
1 parent d2fa91c commit d44e170
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
'/docs/',
'/scripts/mock/',
],
collectCoverageFrom: ['**/*/src/**/*.{js,jsx,ts,tsx}'],
collectCoverageFrom: ['packages/**/*/src/**/*.{js,jsx,ts,tsx}'],
moduleDirectories: ['node_modules', 'lib', 'es', 'dist'],
moduleNameMapper: {
'\\.(less|css)$': 'jest-less-loader',
Expand Down
14 changes: 14 additions & 0 deletions packages/mana-core/src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import 'react';
import assert from 'assert';

import { ManaPreset, ManaComponents, ThemeModule } from './index';

describe('app', () => {
it('#app import', () => {
assert(ManaPreset);
assert(ManaComponents);
assert(ManaComponents.Application);
assert(ManaComponents.Context);
assert(ThemeModule);
});
});
2 changes: 1 addition & 1 deletion packages/mana-core/src/menu/default-menu-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getOrigin, prop } from '@difizen/mana-observable';
import { inject, transient } from '@difizen/mana-syringe';

import { CommandRegistry } from '../command/command-registry';
import { renderNode } from '../view';
import { renderNode } from '../view/utils';

import { CommandMenuNode, ExecutableMenuNode, MenuSymbol } from './menu-protocol';
import type { MenuItem, MenuPath, ActionMenuNode, MenuNode } from './menu-protocol';
Expand Down
4 changes: 2 additions & 2 deletions packages/mana-core/src/view/stateful-view.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseView } from './default-view.js';
import type { StatefulView } from './view-protocol.js';
import { BaseView } from './default-view';
import type { StatefulView } from './view-protocol';

export abstract class BaseStatefulView extends BaseView implements StatefulView {
constructor() {
Expand Down

0 comments on commit d44e170

Please sign in to comment.