Skip to content

Commit 1a5ccf5

Browse files
committed
Merge branch 'master' into readme-template
2 parents c35fd79 + b41e968 commit 1a5ccf5

File tree

32 files changed

+19724
-52046
lines changed

32 files changed

+19724
-52046
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.14.2
1+
20.10.0

.storybook/main.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { StorybookConfig } from '@storybook/nextjs';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-links',
7+
'@storybook/addon-essentials',
8+
'@storybook/addon-onboarding',
9+
'@storybook/addon-interactions',
10+
'@storybook/addon-a11y',
11+
'@chakra-ui/storybook-addon',
12+
],
13+
framework: {
14+
name: '@storybook/nextjs',
15+
options: {},
16+
},
17+
docs: {
18+
autodocs: 'tag',
19+
},
20+
};
21+
export default config;

.storybook/preview-head.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

.storybook/preview.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { Preview } from '@storybook/react';
2+
3+
import theme from '../src/styles/theme';
4+
5+
const preview: Preview = {
6+
parameters: {
7+
actions: { argTypesRegex: '^on[A-Z].*' },
8+
controls: {
9+
matchers: {
10+
color: /(background|color)$/i,
11+
date: /Date$/i,
12+
},
13+
},
14+
chakra: {
15+
theme,
16+
},
17+
},
18+
};
19+
20+
export default preview;

.storybook/preview.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

.storybook/withDatxProvider.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const customJestConfig = {
3939
collectCoverageFrom: ['./src/**/*.{js,jsx,ts,tsx}', '!./src/**/*.stories.{js,jsx,ts,tsx}', '!./src/interfaces/**/*'],
4040
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
4141
snapshotSerializers: ['@emotion/jest/serializer'],
42+
testEnvironmentOptions: {
43+
customExportConditions: [''],
44+
},
4245
};
4346

4447
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async

jest.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Used for __tests__/testing-library.js
55
// Learn more: https://github.com/testing-library/jest-dom
66
import { server } from '@/mocks/server';
7-
import '@testing-library/jest-dom/extend-expect';
7+
import '@testing-library/jest-dom';
88
import 'jest-axe/extend-expect';
99

1010
// eslint-disable-next-line @typescript-eslint/no-unsafe-return

0 commit comments

Comments
 (0)