RTKQ: Add typing to RTKQ hooks in apiSlice
This commit adds typing to the RTK Query hooks. The hooks have been refactored to be simpler and all custom query functions have been removed.
This commit is contained in:
parent
1b01cfba0b
commit
0fd07f1f74
19 changed files with 237 additions and 242 deletions
|
|
@ -161,9 +161,8 @@ describe('Step Upload to Azure', () => {
|
|||
test('component renders error state correctly', async () => {
|
||||
setUp();
|
||||
server.use(
|
||||
rest.get(
|
||||
'http://localhost'.concat(PROVISIONING_SOURCES_ENDPOINT),
|
||||
(req, res, ctx) => res(ctx.status(500))
|
||||
rest.get(`${PROVISIONING_SOURCES_ENDPOINT}/sources`, (req, res, ctx) =>
|
||||
res(ctx.status(500))
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -127,9 +127,8 @@ describe('Step Upload to AWS', () => {
|
|||
test('component renders error state correctly', async () => {
|
||||
setUp();
|
||||
server.use(
|
||||
rest.get(
|
||||
'http://localhost'.concat(PROVISIONING_SOURCES_ENDPOINT),
|
||||
(req, res, ctx) => res(ctx.status(500))
|
||||
rest.get(`${PROVISIONING_SOURCES_ENDPOINT}/sources`, (req, res, ctx) =>
|
||||
res(ctx.status(500))
|
||||
)
|
||||
);
|
||||
|
||||
|
|
@ -174,7 +173,7 @@ describe('Step Upload to AWS', () => {
|
|||
sourceDropdown.click();
|
||||
|
||||
const source = await screen.findByRole('option', {
|
||||
name: /my_source 123456789012/i,
|
||||
name: /my_source/i,
|
||||
});
|
||||
source.click();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue