This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { render } from '@testing-library/react'; | |
import App from './App'; | |
test('renders react link', () => { | |
const { getByText } = render(<App />); | |
const linkElement = getByText(/learn react/i); | |
expect(linkElement).toBeInTheDocument(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Resolver, Query, Args, Mutation } from '@nestjs/graphql'; | |
import { KeyValInput } from '@common/inputs/key-val.input'; | |
import { CurrentUser, Fields } from '@common/decorators'; | |
import { ICurrentUser } from '@common/interfaces'; | |
import { AccountTypeService } from '@app/v1/account-type/account-type.service'; | |
import { AccountType, AccountTypeWithPagination } from '@app/v1/account-type/account-type.model'; | |
import { AccountTypeFilterParams, AccountTypeUpdateDto, ApproveAccountTypeInput } from './account-type.dto'; | |
import { PaginationParams, SortingParam } from '@rubix/common'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const autocannon = require('autocannon') | |
function startBench() { | |
const url = 'http://localhost:10105'; | |
autocannon({ | |
url, | |
connections: 10, //default | |
pipelining: 1, // default |