Skip to content

Commit

Permalink
test(core): Do not throw errors in e2e tests for search service
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jun 6, 2019
1 parent 8dd2845 commit 5fc9484
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/service/services/search.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Injectable } from '@nestjs/common';
import { JobInfo } from '@vendure/common/lib/generated-types';
import { JobState, Maybe, Scalars } from '../../../../common/src/generated-types';

import { RequestContext } from '../../api/common/request-context';
import { InternalServerError } from '../../common/error/errors';
Expand All @@ -22,6 +23,11 @@ export class SearchService {
if (!process.env.CI) {
Logger.warn(`The SearchService should be overridden by an appropriate search plugin.`);
}
throw new InternalServerError('error.not-implemented');
return {
id: 'error',
name: '',
state: JobState.FAILED,
progress: 0,
};
}
}

0 comments on commit 5fc9484

Please sign in to comment.