Newer
Older
import { AxiosError, toFormData } from 'axios'
import { useMutation as useRQMutation, UseMutationOptions } from 'react-query'
import { Formalization, Implementation, Report } from 'src/models'
import axiosService from 'src/services/axios-service'
export namespace RunTestsStep2Mutation {
export type Params = {
id: Formalization['id']
implementationId: Implementation['id']
wrapperFile: File
export const mutationFn = (params: Params) =>
axiosService
.post<Response>(
`/formalizations/${params.id}/run-tests-step-2/${params.implementationId}`,