Skip to content

Commit

Permalink
updates project dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Jul 9, 2019
1 parent 35eebfe commit 8baf4e7
Show file tree
Hide file tree
Showing 5 changed files with 1,931 additions and 1,460 deletions.
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build:cjs": "node_modules/.bin/rollup -c --environment NODE_ENV:production,TARGET:cjs",
"build:umd": "node_modules/.bin/rollup -c --environment NODE_ENV:production,TARGET:umd",
"build:esm": "node_modules/.bin/rollup -c --environment NODE_ENV:production,TARGET:esm",
"build:types": "ttsc",
"build:types": "ttsc --skipLibCheck",
"build:storybook": "cross-env TARGET=cjs build-storybook",
"build:storybook:umd": "cross-env TARGET=umd build-storybook",
"build:storybook:esm": "cross-env TARGET=esm build-storybook",
Expand Down Expand Up @@ -69,59 +69,59 @@
"styled-components": ">= 4"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.2.3",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/preset-env": "^7.2.3",
"@babel/core": "^7.5.0",
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-proposal-export-default-from": "^7.5.2",
"@babel/plugin-proposal-export-namespace-from": "^7.5.2",
"@babel/plugin-proposal-object-rest-spread": "^7.5.2",
"@babel/preset-env": "^7.5.2",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@cypress/webpack-preprocessor": "^4.0.2",
"@storybook/addon-actions": "^5.0.3",
"@storybook/addon-links": "^5.0.3",
"@storybook/react": "^5.0.3",
"@types/jest": "24.0.12",
"@types/react": "^16.7.18",
"@cypress/webpack-preprocessor": "^4.1.0",
"@storybook/addon-actions": "^5.1.9",
"@storybook/addon-links": "^5.1.9",
"@storybook/react": "^5.1.9",
"@testing-library/jest-dom": "^4.0.0",
"@testing-library/react": "^8.0.4",
"@types/jest": "^24.0.15",
"@types/react": "^16.8.23",
"@types/react-dom": "^16.0.11",
"@types/styled-components": "^4.1.4",
"@zerollup/ts-transform-paths": "^1.7.0",
"@types/styled-components": "^4.1.16",
"@zerollup/ts-transform-paths": "^1.7.3",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^7.1.5",
"bundlesize": "^0.17.0",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"bundlesize": "^0.18.0",
"chai": "^4.2.0",
"coveralls": "^3.0.2",
"coveralls": "^3.0.4",
"cross-env": "^5.2.0",
"cypress": "^3.0.3",
"cypress": "^3.3.2",
"husky": "^3.0.0",
"jest": "^24.8.0",
"jest-dom": "^3.1.2",
"lint-staged": "^8.1.0",
"lint-staged": "^9.1.0",
"match-media-mock": "^0.1.1",
"prettier": "^1.15.2",
"prettier": "^1.18.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-testing-library": "^7.0.0",
"rimraf": "^2.6.3",
"rollup": "^1.10.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup": "^1.16.7",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.21.0",
"rollup-plugin-typescript2": "^0.21.2",
"storybook": "^1.0.0",
"styled-components": "^4.1.3",
"styled-components": "^4.3.2",
"ts-jest": "^24.0.2",
"tslib": "^1.9.3",
"tslint": "^5.12.0",
"tslib": "^1.10.0",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.17.0",
"tslint-react": "^4.0.0",
"ttypescript": "^1.5.6",
"typescript": "^3.2.2",
"ttypescript": "^1.5.7",
"typescript": "^3.5.3",
"url": "^0.11.0"
}
}
4 changes: 2 additions & 2 deletions src/components/Box.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import Box from './Box'
import { render, cleanup, getByText } from 'react-testing-library'
import 'jest-dom/extend-expect'
import { render, cleanup, getByText } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'

describe('Box', () => {
afterEach(cleanup)
Expand Down
8 changes: 4 additions & 4 deletions src/const/propAliases.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import propAliases from './propAliases'
import { Composition } from '..'
import { render, cleanup, getByTestId } from 'react-testing-library'
import 'jest-dom/extend-expect'
import { render, cleanup, getByTestId } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'

const defaultValue = 10
const explicitValues = {
Expand Down Expand Up @@ -52,7 +52,7 @@ describe('Prop aliases', () => {
{({ First }) => <First>{propAliasName}</First>}
</Composition>,
)
const domElement = getByTestId(container, 'composition')
const element = getByTestId(container, 'composition')

/* Assertion */
const { props: cssProps, transformValue } = propAliases[propAliasName]
Expand All @@ -61,7 +61,7 @@ describe('Prop aliases', () => {
: propValue

cssProps.forEach((cssPropName) => {
expect(domElement).toHaveStyle(`${cssPropName}:${expectedValue}`)
expect(element).toHaveStyle(`${cssPropName}:${expectedValue}`)
})
})
})
Expand Down
31 changes: 23 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compileOnSave": true,
"compilerOptions": {
"types": ["jest"],
"module": "es6",
"target": "esnext",
"moduleResolution": "node",
Expand All @@ -13,17 +12,33 @@
"jsx": "react",
"baseUrl": ".",
"paths": {
"@src/*": ["src/*"],
"@components/*": ["src/components/*"],
"@const/*": ["src/const/*"],
"@utils/*": ["src/utils/*"]
"@src/*": [
"src/*"
],
"@components/*": [
"src/components/*"
],
"@const/*": [
"src/const/*"
],
"@utils/*": [
"src/utils/*"
]
},
"types": [
"jest"
],
"plugins": [
{
"transform": "@zerollup/ts-transform-paths"
}
]
},
"include": ["src"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
Loading

0 comments on commit 8baf4e7

Please sign in to comment.