Skip to content

Commit

Permalink
update search-headless to v2 alpha
Browse files Browse the repository at this point in the history
Had to update the msw mocks to intercept the new search endpoints.

J=None
TEST=manual

unit tests pass again with no errors
before this there would be an "Invalid API Key" error
  • Loading branch information
oshi97 committed Aug 16, 2022
1 parent 56e1a2f commit 3128ca2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"generate-notices": "generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"
},
"dependencies": {
"@yext/search-headless": "^1.4.0",
"@yext/search-headless": "^2.0.0-alpha.130",
"use-sync-external-store": "^1.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions tests/setup/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { universalQueryResponse, universalQueryResponseWithFilters } from './res

// Any unhandled requests are dropped and logged as warnings
const handlers = [
rest.get(/answers\/vertical\/query/, (req, res, ctx) => {
rest.get(/search\/vertical\/query/, (req, res, ctx) => {
const input = req.url.searchParams.get('input');
switch (input) {
case 'resultsWithNlpFilter':
Expand All @@ -18,7 +18,7 @@ const handlers = [
);
}
}),
rest.get(/answers\/query/, (req, res, ctx) => {
rest.get(/search\/query/, (req, res, ctx) => {
const input = req.url.searchParams.get('input');
switch (input) {
case 'resultsWithFilter':
Expand Down

0 comments on commit 3128ca2

Please sign in to comment.