diff --git a/package.json b/package.json index 57aff8e7..d292aa43 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dependencies": {}, "scripts": { "storybook": "start-storybook -p 6006", - "build-storybook": "build-storybook" + "build-storybook": "build-storybook", + "test": "lerna run test" } } diff --git a/packages/common-components/package.json b/packages/common-components/package.json index 2362826a..51e2368f 100644 --- a/packages/common-components/package.json +++ b/packages/common-components/package.json @@ -10,7 +10,6 @@ ], "scripts": { "dev": "webpack-dev-server", - "test": "npm run cover", "check-coverage": "nyc check-coverage --lines 65 --functions 60 --Statements 65", "ava": "NODE_ENV=test ava", "server": "node server", @@ -92,9 +91,12 @@ "babel-plugin-transform-class-properties": "6.24.1", "browser-env": "3.3.0", "eslint": "7.9.0", + "eslint-plugin-graphql": "^4.0.0", "eslint-plugin-import": "2.22.0", "eslint-plugin-react": "7.20.6", + "eslint-plugin-react-hooks": "^4.2.0", "global": "4.4.0", + "graphql": "^15.4.0", "html-webpack-plugin": "3.2.0", "husky": "4.3.6", "koa": "^2.13.0", diff --git a/packages/common-components/src/storybook-utils.tsx b/packages/common-components/src/storybook-utils.tsx index 62bd17d4..5a7a3dc9 100644 --- a/packages/common-components/src/storybook-utils.tsx +++ b/packages/common-components/src/storybook-utils.tsx @@ -1,9 +1,9 @@ -import { styled } from "onefx/lib/styletron-react"; +import { styled, Theme, ThemeProvider } from "onefx/lib/styletron-react"; import React from "react"; import "./antd.less"; import { Story } from "@storybook/react/types-6-0"; import { BrowserRouter } from "react-router-dom"; -import { Theme, ThemeProvider } from "onefx/lib/styletron-react"; + import { THEME } from "onefx/lib/styletron-react/theme-provider"; import { Client as StyletronClient } from "styletron-engine-atomic"; import { Provider as StyletronProvider } from "styletron-react"; diff --git a/packages/eslint-config-onefx/package.json b/packages/eslint-config-onefx/package.json index 3edb3a31..ca093c9a 100644 --- a/packages/eslint-config-onefx/package.json +++ b/packages/eslint-config-onefx/package.json @@ -3,9 +3,6 @@ "version": "2.6.4", "description": "lint rules for onefx projects", "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, "peerDependencies": { "eslint": ">= 7" }, diff --git a/packages/onefx-auth-provider/package.json b/packages/onefx-auth-provider/package.json index a72724be..7163a5e7 100644 --- a/packages/onefx-auth-provider/package.json +++ b/packages/onefx-auth-provider/package.json @@ -10,7 +10,6 @@ ], "scripts": { "dev": "webpack-dev-server", - "test": "npm run cover", "check-coverage": "nyc check-coverage --lines 65 --functions 60 --Statements 65", "ava": "NODE_ENV=test ava", "server": "node server", @@ -94,10 +93,13 @@ "babel-plugin-transform-class-properties": "6.24.1", "browser-env": "3.3.0", "eslint": "7.9.0", + "eslint-plugin-graphql": "^4.0.0", "eslint-plugin-import": "2.22.0", "eslint-plugin-react": "7.20.6", + "eslint-plugin-react-hooks": "^4.2.0", "form-serialize": "^0.7.2", "global": "4.4.0", + "graphql": "^15.4.0", "html-webpack-plugin": "3.2.0", "husky": "4.3.6", "is-browser": "^2.1.0",