chore: bump devDependencies

This commit is contained in:
Nicolas Meienberger 2023-09-28 08:23:53 +02:00
parent 61cac4abf6
commit c60f77bf02
8 changed files with 1291 additions and 665 deletions

View file

@ -93,34 +93,33 @@
"@faker-js/faker": "^8.0.2",
"@playwright/test": "^1.35.1",
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@total-typescript/shoehorn": "^0.1.1",
"@total-typescript/ts-reset": "^0.4.2",
"@total-typescript/ts-reset": "^0.5.1",
"@types/fs-extra": "^11.0.1",
"@types/isomorphic-fetch": "^0.0.36",
"@types/isomorphic-fetch": "^0.0.37",
"@types/jest": "^29.5.2",
"@types/lodash.merge": "^4.6.7",
"@types/node": "20.3.2",
"@types/node": "20.7.1",
"@types/pg": "^8.10.2",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@types/react": "18.2.23",
"@types/react-dom": "18.2.8",
"@types/semver": "^7.5.0",
"@types/supertest": "^2.0.12",
"@types/testing-library__jest-dom": "^5.14.6",
"@types/uuid": "^9.0.2",
"@types/validator": "^13.7.17",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vitejs/plugin-react": "^4.0.1",
"@vitest/coverage-v8": "^0.32.2",
"@vitest/coverage-v8": "^0.34.5",
"dotenv-cli": "^7.2.1",
"eslint": "8.43.0",
"eslint": "8.50.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-next": "13.4.7",
"eslint-config-prettier": "^8.8.0",
"eslint-config-next": "13.5.3",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.2",
@ -128,21 +127,21 @@
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.11.0",
"eslint-plugin-testing-library": "^6.0.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"knip": "^2.19.4",
"memfs": "^4.2.0",
"msw": "^1.2.2",
"next-router-mock": "^0.9.7",
"prettier": "^2.8.8",
"prettier": "^3.0.3",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsx": "^3.12.7",
"typescript": "5.1.5",
"typescript": "5.2.2",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.2",
"vitest": "^0.34.5",
"wait-for-expect": "^3.0.2"
},
"msw": {

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,7 @@
import React from 'react';
import { render, fireEvent, cleanup, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { render, fireEvent, screen } from '@testing-library/react';
import { Button } from './Button';
afterEach(cleanup);
describe('Button component', () => {
it('should render without crashing', () => {
render(<Button>Click me</Button>);

View file

@ -1,5 +1,4 @@
import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { Input } from './Input';
import { fireEvent, render, waitFor, screen } from '../../../../../tests/test-utils';

View file

@ -136,14 +136,14 @@ describe('Test: AppActions', () => {
// act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/myapp.example.com/)).toBeInTheDocument();
});
const domainButton = screen.getByText(/myapp.example.com/);
// assert
userEvent.click(domainButton);
await userEvent.click(domainButton);
await waitFor(() => {
expect(openFn).toHaveBeenCalledWith('domain');
});
@ -157,14 +157,14 @@ describe('Test: AppActions', () => {
// act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/test.tipi.lan/)).toBeInTheDocument();
});
const localButton = screen.getByText(/test.tipi.lan/);
// assert
userEvent.click(localButton);
await userEvent.click(localButton);
await waitFor(() => {
expect(openFn).toHaveBeenCalledWith('local_domain');
});
@ -178,14 +178,14 @@ describe('Test: AppActions', () => {
// act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/localhost:3000/)).toBeInTheDocument();
});
const localButton = screen.getByText(/localhost:3000/);
// assert
userEvent.click(localButton);
await userEvent.click(localButton);
await waitFor(() => {
expect(openFn).toHaveBeenCalledWith('local');
});

View file

@ -86,13 +86,13 @@ describe('Test: AppDetailsContainer', () => {
// Act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/localhost:/)).toBeInTheDocument();
});
const openButtonItem = screen.getByText(/localhost:/);
userEvent.click(openButtonItem);
await userEvent.click(openButtonItem);
// Assert
await waitFor(() => {
@ -109,14 +109,14 @@ describe('Test: AppDetailsContainer', () => {
// Act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/localhost:/)).toBeInTheDocument();
});
const openButtonItem = screen.getByText(/localhost:/);
userEvent.click(openButtonItem);
await userEvent.click(openButtonItem);
// Assert
await waitFor(() => {
@ -133,14 +133,14 @@ describe('Test: AppDetailsContainer', () => {
// Act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/test.com/)).toBeInTheDocument();
});
const openButtonItem = screen.getByText(/test.com/);
userEvent.click(openButtonItem);
await userEvent.click(openButtonItem);
// Assert
await waitFor(() => {
@ -157,14 +157,14 @@ describe('Test: AppDetailsContainer', () => {
// Act
const openButton = screen.getByRole('button', { name: 'Open' });
userEvent.type(openButton, '{arrowdown}');
await userEvent.type(openButton, '{arrowdown}');
await waitFor(() => {
expect(screen.getByText(/.tipi.lan/)).toBeInTheDocument();
});
const openButtonItem = screen.getByText(/.tipi.lan/);
userEvent.click(openButtonItem);
await userEvent.click(openButtonItem);
// Assert
await waitFor(() => {

View file

@ -699,7 +699,7 @@ describe('Test: changePassword', () => {
await AuthService.changePassword({ userId: user.id, newPassword, currentPassword: 'password' });
// assert
// eslint-disable-next-line testing-library/no-await-sync-query
// eslint-disable-next-line testing-library/no-await-sync-queries
const sessions = await cache.getByPrefix(`session:${user.id}:`);
expect(sessions).toHaveLength(0);
});

View file

@ -1,6 +1,6 @@
import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { server } from '../../src/client/mocks/server';
import '@testing-library/jest-dom';
// Mock next/router
// eslint-disable-next-line global-require