Skip to content

Commit

Permalink
pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pckool committed Jul 10, 2023
1 parent 41f7f66 commit 82cc45e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
42 changes: 19 additions & 23 deletions packages/plexus-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,45 @@
import { instance, PlexusInstance } from './instance/instance'
import { WatchableMutable } from './watchable'
import { instance, PlexusInstance, batch } from './instance/instance'
import { PlexusPlugin, Plugin, createPlexusPlugin } from './plugin'
import { PlexusScopeConfig } from './scope'

export { gql } from './gql'
export { scope, PlexusScopeConfig } from './scope'
export { WatchableMutable as WatchableValue, Watchable } from './watchable'
export { event, _event, PlexusEventInstance } from './event'
export { storage, _storage, StorageOverride } from './storage'
export { state, _state, PlexusStateInstance, StateInstance } from './state'
export { computed, _computed, PlexusComputedStateInstance } from './computed'
export { WatchableMutable, Watchable } from './watchable'

export { PlexusWatchableValueInterpreter } from '@plexusjs/utils'
export {
action,
_action,
FunctionType,
PlexusAction,
PlexusActionHooks,
batchAction,
} from './action'

export {
preaction,
_preaction,
PlexusPreAction,
PlexusPreActionConfig,
PreActionInstance,
} from './preaction'

export {
api,
PlexusApi,
PlexusApiConfig,
PlexusApiRes,
ApiInstance,
} from '@plexusjs/api'
export {
collection,
_collection,
PlexusCollectionConfig,
PlexusCollectionInstance,
PlexusCollectionSelector,
PlexusCollectionGroup,
} from './collection/collection'
export { event, _event, PlexusEventInstance } from './event'
export { storage, _storage, StorageOverride } from './storage'
export { PlexusScopeConfig, scope } from './scope'
import { PlexusPlugin, Plugin, createPlexusPlugin } from './plugin'

export { PlexusWatchableValueInterpreter } from '@plexusjs/utils'
export { state, _state, PlexusStateInstance, StateInstance } from './state'

export function setGlobalCatch(catcher: (err: any) => unknown) {
instance()._globalCatch = catcher
Expand All @@ -55,20 +60,11 @@ export function usePlugin(
// instance()._plugins.set(plugin.name, plugin)
}

export {
api,
PlexusApi,
PlexusApiConfig,
PlexusApiRes,
ApiInstance,
} from '@plexusjs/api'
export { gql } from './gql'

export {
instance,
batch,
PlexusPlugin,
PlexusScopeConfig as PlexusPluginConfig,
createPlexusPlugin,
PlexusInstance,
WatchableMutable as WatchableValue,
}
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
include: ['./tests/**/*.test.ts', './tests/**/*.test.tsx'],
},
})

0 comments on commit 82cc45e

Please sign in to comment.