Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: repository cleanup #2523

Merged
merged 16 commits into from
Jun 23, 2023
Merged
Prev Previous commit
Next Next commit
Fix lint issue in build
  • Loading branch information
koredefashokun committed Jun 22, 2023
commit d18c7ab9ff88f12e9e93e1b8d028c0638fd78875
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/node_modules/*
**/out/*
**/.next/*
**/.next/*
**/charting_library/*
9 changes: 5 additions & 4 deletions packages/app/__tests__/pages/market.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { render } from '@testing-library/react'

import Market from 'pages/market'
import { TEST_ADDR } from 'testing/unit/constants'
import mockConnector from 'testing/unit/mocks/mockConnector'
import MockProviders from 'testing/unit/mocks/MockProviders'
import { mockGrapqhlRequest, mockReactQuery } from 'testing/unit/mocks/mockQueries'

import { TEST_ADDR } from '../../testing/unit/constants'
import mockConnector from '../../testing/unit/mocks/mockConnector'
import MockProviders from '../../testing/unit/mocks/MockProviders'
import { mockGrapqhlRequest, mockReactQuery } from '../../testing/unit/mocks/mockQueries'

describe('Futures market page - cross margin', () => {
beforeAll(() => {
Expand Down
22 changes: 11 additions & 11 deletions packages/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
const gitRevision = require('child_process')
.execSync('git rev-parse --short HEAD')
.toString()
.trim();
.trim()

const { withPlugins } = require('next-compose-plugins');
const transpile = require('next-transpile-modules');
const withTM = [transpile(['echarts', 'zrender'])];
const { withPlugins } = require('next-compose-plugins')
const transpile = require('next-transpile-modules')
const withTM = [transpile(['echarts', 'zrender'])]

const baseConfig = {
env: {
Expand All @@ -19,11 +19,11 @@ const baseConfig = {
disableStaticImages: true,
},
webpack: (config, options) => {
config.resolve.mainFields = ['module', 'browser', 'main'];
config.resolve.mainFields = ['module', 'browser', 'main']
if (!options.isServer) {
config.resolve.fallback = {
fs: false,
};
}
}
config.module.rules.push(
{
Expand Down Expand Up @@ -52,9 +52,9 @@ const baseConfig = {
test: /\.png/,
type: 'asset/resource',
}
);
)

return config;
return config
},
trailingSlash: true,
compiler: {
Expand All @@ -78,9 +78,9 @@ const baseConfig = {
destination: '/exchange/?quote=:quote&base=:base',
permanent: true,
},
];
]
},
productionBrowserSourceMaps: true,
};
}

module.exports = withPlugins([baseConfig, ...withTM]);
module.exports = withPlugins([baseConfig, ...withTM])
3 changes: 1 addition & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
"check-types": "tsc --noEmit",
"jest-preview": "jest-preview",
"test:unit": "jest --coverage --detectOpenHandles",
"test:e2e": "start-server-and-test 'npm run build && npm run start' http-get://localhost:3000 'synpress run'",
"test:e2e": "start-server-and-test 'pnpm build && pnpm start' http-get://localhost:3000 'synpress run'",
"test:e2e:only:tests": "synpress run",
"test:e2e:open:testrunner": "synpress open",
"test:e2e:ci": "synpress run --group smoke-tests --record --parallel",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"generate-contract-types": "typechain --target ethers-v5 --out-dir ./sdk/contracts/types './sdk/contracts/abis/*.json' --show-stack-traces",
"preinstall": "pnpm --filter \"@kwenta/sdk\" build"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Input/NumericInput.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from '@testing-library/react'
import userEvent from '@testing-library/user-event'

import ContextProvider from 'testing/unit/mocks/MockProviders'
import ContextProvider from '../../../testing/unit/mocks/MockProviders'

import NumericInput from './NumericInput'

Expand Down
14 changes: 0 additions & 14 deletions packages/app/src/testing/e2e/.eslintrc.js

This file was deleted.

73 changes: 0 additions & 73 deletions packages/app/src/testing/e2e/pages/exchange/exchange-page.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/app/src/testing/e2e/pages/exchange/header.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/app/src/testing/e2e/pages/exchange/notifications.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/app/src/testing/e2e/pages/exchange/onboard.js

This file was deleted.

111 changes: 0 additions & 111 deletions packages/app/src/testing/e2e/pages/markets/futures-page.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/app/src/testing/e2e/pages/markets/header.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/app/src/testing/e2e/pages/markets/notifications.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/app/src/testing/e2e/pages/markets/onboard.js

This file was deleted.

Loading