Skip to content

Commit

Permalink
Update dependencies, fix tests, set node version to v20.10.0 (#71)
Browse files Browse the repository at this point in the history
* WIP - update minor versions

* WIP - update major version of some dependencies

* WIP - update major version of some dependencies #2

* WIP - update dependencies #3

* WIP - storybook setup

* WIP - add example story

* WIP - update dependencies

* WIP - update msw to v2.0.11

* WIP - update dependencies

* Update tests

* Update date-fns to version 3.0.0 and node version to 20.10.0

* Update TypeScript version to 5.3.3

* Downgrade TypeScript version to 5.0.4

* Fix formatting

---------

Co-authored-by: Igor Lide <[email protected]>
Co-authored-by: Dario Oroz <[email protected]>
  • Loading branch information
3 people authored Dec 21, 2023
1 parent 7e4144d commit b41e968
Show file tree
Hide file tree
Showing 32 changed files with 19,724 additions and 52,046 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14.2
20.10.0
75 changes: 0 additions & 75 deletions .storybook/main.js

This file was deleted.

21 changes: 21 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { StorybookConfig } from '@storybook/nextjs';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@chakra-ui/storybook-addon',
],
framework: {
name: '@storybook/nextjs',
options: {},
},
docs: {
autodocs: 'tag',
},
};
export default config;
33 changes: 0 additions & 33 deletions .storybook/preview-head.html

This file was deleted.

20 changes: 20 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Preview } from '@storybook/react';

import theme from '../src/styles/theme';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
chakra: {
theme,
},
},
};

export default preview;
44 changes: 0 additions & 44 deletions .storybook/preview.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions .storybook/withDatxProvider.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const customJestConfig = {
collectCoverageFrom: ['./src/**/*.{js,jsx,ts,tsx}', '!./src/**/*.stories.{js,jsx,ts,tsx}', '!./src/interfaces/**/*'],
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
snapshotSerializers: ['@emotion/jest/serializer'],
testEnvironmentOptions: {
customExportConditions: [''],
},
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
Expand Down
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Used for __tests__/testing-library.js
// Learn more: https://github.com/testing-library/jest-dom
import { server } from '@/mocks/server';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import 'jest-axe/extend-expect';

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
Expand Down
Loading

0 comments on commit b41e968

Please sign in to comment.