Skip to content

Commit

Permalink
fix(bundle): fix modules missing in yarn berry (#563)
Browse files Browse the repository at this point in the history
* chore: add peer dependencies

* fix(bundle): fix modules missing in yarn berry

* chore: upgrade configs for jest 27
  • Loading branch information
unix authored Jun 23, 2021
1 parent e8a7a17 commit 2d77894
Show file tree
Hide file tree
Showing 4 changed files with 1,639 additions and 1,863 deletions.
2 changes: 2 additions & 0 deletions .jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
verbose: true,

testEnvironment: 'jsdom',

setupFiles: ['./tests/setup.js'],

moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion components/avatar/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ describe('Avatar', () => {
const count = 20
const group = render(<Avatar.Group count={count} />)
const text = group.find('.count').text()
expect(text).toContain(count)
expect(text).toMatch(`${count}`)
})
})
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@geist-ui/react",
"version": "2.2.0-rc.6",
"version": "2.2.0-dev.2",
"main": "dist/index.js",
"module": "esm/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -48,12 +48,12 @@
"/esm"
],
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.12.16",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.8.3",
"@babel/runtime": "^7.12.13",
"@babel/cli": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@babel/runtime": "^7.14.6",
"@geist-ui/prettier-config": "^1.0.1",
"@geist-ui/react-icons": "^1.0.1",
"@mapbox/rehype-prism": "^0.6.0",
Expand All @@ -69,18 +69,18 @@
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.2",
"babel-jest": "^25.3.0",
"babel-loader": "^8.0.6",
"babel-jest": "^27.0.5",
"babel-loader": "^8.2.2",
"css-mediaquery": "^0.1.2",
"enzyme": "^3.11.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-ts-lambdas": "^1.2.3",
"eslint-plugin-react": "^7.22.0",
"extract-mdx-metadata": "^1.0.0",
"fs-extra": "^8.1.0",
"inter-ui": "^3.15.0",
"jest": "^25.3.0",
"fs-extra": "^10.0.0",
"inter-ui": "^3.19.2",
"jest": "^27.0.5",
"next": "^11.0.0",
"prettier": "^2.3.1",
"react": "^17.0.2",
Expand All @@ -97,5 +97,9 @@
},
"dependencies": {
"styled-jsx": "^3.4.4"
},
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
}
}
Loading

0 comments on commit 2d77894

Please sign in to comment.