Skip to content

Commit

Permalink
fix: #1920 element next jest test config
Browse files Browse the repository at this point in the history
  • Loading branch information
duong-se committed Jul 16, 2020
1 parent daa3aa9 commit 5792d9c
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/elements-next/doczrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// TODO - a start on theming - needs some work - ideally, should look like Elements itself
export default {
dest: '/public/dist',
typescript: true,
showDarkModeSwitch: false,
themeConfig: {
Expand Down
4 changes: 2 additions & 2 deletions packages/elements-next/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ const baseConfig = require('../../scripts/jest/jest.config')

module.exports = {
...baseConfig,
testPathIgnorePatterns: ['<rootDir>/src/tests/'],
testPathIgnorePatterns: ['<rootDir>/src/tests/', 'dist', '.docz', 'config'],
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
coveragePathIgnorePatterns: [
'<rootDir>[/\\\\](node_modules|src/tests)[/\\\\]',
'<rootDir>[/\\\\](node_modules|src/tests|dist|.docz|config)[/\\\\]',
'src/index.tsx',
'index.ts'
],
Expand Down
3 changes: 2 additions & 1 deletion packages/elements-next/src/components/headings/headings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { Heading } from './headings'
import { DocsWrapper } from '@/utils/docs-wrapper'

# Heading

## Document
<Props of={Heading.Main} />

## Usage
<Playground>
<DocsWrapper>
<Heading.Main>Heading Main</Heading.Main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

exports[`modal Modal should match snapshot 1`] = `
<Component
bodyStyle={Object {}}
className=""
closable={true}
destroyOnClose={false}
focusTriggerAfterClose={true}
forceRender={false}
keyboard={true}
mask={true}
maskClosable={true}
maskStyle={Object {}}
prefixCls="rc-dialog"
style={Object {}}
visible={true}
wrapClassName=""
>
Expand All @@ -14,7 +25,18 @@ exports[`modal Modal should match snapshot 1`] = `

exports[`modal Modal should match snapshot when isCentered 1`] = `
<Component
bodyStyle={Object {}}
className=""
closable={true}
destroyOnClose={false}
focusTriggerAfterClose={true}
forceRender={false}
keyboard={true}
mask={true}
maskClosable={true}
maskStyle={Object {}}
prefixCls="rc-dialog"
style={Object {}}
visible={true}
wrapClassName=""
>
Expand All @@ -26,7 +48,18 @@ exports[`modal Modal should match snapshot when isCentered 1`] = `

exports[`modal Modal should match snapshot when not show modal 1`] = `
<Component
bodyStyle={Object {}}
className=""
closable={true}
destroyOnClose={false}
focusTriggerAfterClose={true}
forceRender={false}
keyboard={true}
mask={true}
maskClosable={true}
maskStyle={Object {}}
prefixCls="rc-dialog"
style={Object {}}
visible={false}
wrapClassName=""
>
Expand Down
2 changes: 1 addition & 1 deletion packages/elements-next/src/components/modal/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from './modal'
export { ModalProps } from './modal'
export { ModalProps } from './modal'
4 changes: 4 additions & 0 deletions scripts/release/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ const BUCKET_NAMES = {
'site-builder': 'reapit-site-builder-prod',
'smb-onboarder': 'reapit-smb-prod',
'web-components': 'reapit-web-components-prod',
'elements-next': 'reapit-elements-next-prod',
},
development: {
'admin-portal': 'reapit-admin-portal-dev',
Expand All @@ -292,6 +293,7 @@ const BUCKET_NAMES = {
'site-builder': 'reapit-site-builder-dev',
'smb-onboarder': 'reapit-smb-prod',
'web-components': 'reapit-web-components',
'elements-next': 'reapit-elements-next-dev',
},
}

Expand All @@ -308,6 +310,7 @@ const WEB_APPS = [
'site-builder',
'smb-onboarder',
'web-components',
'elements-next',
]

const WEB_COMPONENTS_SERVERLESS_APPS = ['search-widget', 'appointment-planner-component']
Expand All @@ -327,6 +330,7 @@ const NPM_APPS = [
'foundations-ts-definitions',
'react-app-scaffolder',
'web-components',
'elements-next',
]

module.exports = {
Expand Down

0 comments on commit 5792d9c

Please sign in to comment.