mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-27 10:35:58 +00:00

* frontend - Module consolidation for some test modules and reduces errors from unsupported API calls * Fix broken test
29 lines
929 B
TypeScript
29 lines
929 B
TypeScript
import { Factory } from 'ember-cli-mirage';
|
|
import { testUrn, testTarget } from '@datahub/shared/mirage-addon/test-helpers/entity-configs';
|
|
|
|
// The interface for the feature config entry field in mirage
|
|
// TODO META-11235: Allow for entity feature configs container to batch targets
|
|
interface IEntityFeatureConfigEntry {
|
|
urn: string;
|
|
target: string;
|
|
}
|
|
// For some reason this file gets deleted if named `*-config.ts`
|
|
export default Factory.extend<IEntityFeatureConfigEntry>({
|
|
urn: testUrn,
|
|
target: testTarget
|
|
});
|
|
|
|
declare module 'ember-cli-mirage/types/registries/schema' {
|
|
interface IMirageSchemaRegistry {
|
|
entityFeatureConfs: IEntityFeatureConfigEntry;
|
|
entityFeatureConf?: IEntityFeatureConfigEntry;
|
|
}
|
|
}
|
|
|
|
declare module 'ember-cli-mirage/types/registries/model' {
|
|
interface IMirageModelRegistry {
|
|
entityFeatureConfs: IEntityFeatureConfigEntry;
|
|
entityFeatureConf?: IEntityFeatureConfigEntry;
|
|
}
|
|
}
|