Skip to content

Commit

Permalink
fix: split testing to separate export path
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Dec 5, 2023
1 parent a088a46 commit ff576af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {type Component} from 'vue';
import {type AdminComponent, testing} from '@myparcel-pdk/admin';
import {doComponentTestSetup} from '@myparcel-pdk/admin/testing';
import {type AdminComponent} from '@myparcel-pdk/admin';
import {executeAdminComponentTest} from './executeAdminComponentTest';

export const executePdkComponentTests = (components: Partial<Record<AdminComponent, Component>>): void => {
testing.doComponentTestSetup();
doComponentTestSetup();

Object.entries(components).forEach(([name, component]) => {
if (!component) {
Expand Down
6 changes: 3 additions & 3 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"types": "./dist/index.d.ts",
"default": "./src/index.ts"
},
"./integrated": {
"types": "./dist/integrated.d.ts",
"default": "./src/integrated.ts"
"./testing": {
"types": "./dist/testing.d.ts",
"default": "./src/testing.ts"
}
},
"types": "./dist/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions apps/admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export type {
PdkNotification as Notification,
} from './types';

export * as testing from './__tests__';

export * from './actions';
export * from './types';

Expand Down
1 change: 1 addition & 0 deletions apps/admin/src/testing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './__tests__';

0 comments on commit ff576af

Please sign in to comment.