Skip to content

Commit

Permalink
Merge pull request #312 from Availity/fix/storybook-mocks
Browse files Browse the repository at this point in the history
build: upgrade msw
  • Loading branch information
gregmartDOTin committed Jun 17, 2024
2 parents f212a19 + aaa2a52 commit 90ba841
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"access": "public"
},
"dependencies": {
"msw": "^2.3.0",
"msw": "^2.3.1",
"qs": "^6.12.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"hasNextPage": false
},
"items": [
{ "id": "1", "configurationId": "11", "payerIDs": ["a", "b", "c"], "images": { "logo": "/spaces/test_logo.png" } },
{ "id": "2", "configurationId": "22", "payerIDs": ["b", "c"], "images": { "tile": "/spaces/tile.jpg", "billboard": "/spaces/icon.png" } },
{ "id": "3", "configurationId": "33", "payerIDs": ["d", "c"], "url": "/spaces/tile.jpg" }
{ "id": "1", "configurationId": "11", "payerIDs": ["a", "b", "c"], "images": { "logo": "/element/spaces/test_logo.png" } },
{ "id": "2", "configurationId": "22", "payerIDs": ["b", "c"], "images": { "tile": "/element/spaces/tile.jpg", "billboard": "/element/spaces/icon.png" } },
{ "id": "3", "configurationId": "33", "payerIDs": ["d", "c"], "url": "/element/spaces/tile.jpg" }
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/spaces/src/lib/SpacesImage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ describe('SpacesImage', () => {
await waitForElementToBeRemoved(getByRole('progressbar'));

// Ensure the correct src was selected.
expect(mockImage.mock.calls[0][0].src).toEqual('/spaces/tile.jpg');
expect(mockImage.mock.calls[0][0].src).toEqual('/element/spaces/tile.jpg');
});
});
2 changes: 1 addition & 1 deletion static/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* - Please do NOT serve this file on production.
*/

const PACKAGE_VERSION = '2.3.0'
const PACKAGE_VERSION = '2.3.1'
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
const activeClientIds = new Set()
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@availity/mock@workspace:packages/mock"
dependencies:
msw: ^2.3.0
msw: ^2.3.1
qs: ^6.12.1
typescript: ^5.4.5
languageName: unknown
Expand Down Expand Up @@ -14847,9 +14847,9 @@ __metadata:
languageName: node
linkType: hard

"msw@npm:^2.3.0":
version: 2.3.0
resolution: "msw@npm:2.3.0"
"msw@npm:^2.3.1":
version: 2.3.1
resolution: "msw@npm:2.3.1"
dependencies:
"@bundled-es-modules/cookie": ^2.0.0
"@bundled-es-modules/statuses": ^1.0.1
Expand All @@ -14875,7 +14875,7 @@ __metadata:
optional: true
bin:
msw: cli/index.js
checksum: 1b6e9e94f3c3f32f1c5bbdb619dac1c46adc7012e1c3131ab3936817cc7734b6b3cae5cca8947422a84f7b9e6393b5fe44dd174fd2d52d1fc0a0e1fc616a356b
checksum: bae72567488822889cc5c18318206c847b85d1df4c7bff0eac62e3fa902b95dd2e36710e3679829eaceb9c4f5066f9ed441afd919b304fba111fe2dacf82cefb
languageName: node
linkType: hard

Expand Down

0 comments on commit 90ba841

Please sign in to comment.