Skip to content

Commit

Permalink
Merge branch 'master' into readme-template
Browse files Browse the repository at this point in the history
  • Loading branch information
butterknight committed Apr 16, 2024
2 parents c35fd79 + b41e968 commit 1a5ccf5
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 1a5ccf5

Please sign in to comment.