INFRA-1520 | Ashvin | Remove redundant dependencies and test files

This commit is contained in:
Ashvin Sharma
2022-11-25 15:17:32 +05:30
parent f51b8f7f62
commit 13b5db2dd2
7 changed files with 543 additions and 2067 deletions

View File

@@ -1,11 +0,0 @@
import * as React from 'react';
import App from '../src/App';
import {shallow} from "enzyme";
import Dashboard from "../src/components/Dashboard";
describe("App", () => {
it("renders dashboard", () => {
// const component = shallow(<App/>);
// expect(component.find("Dashboard")).toHaveLength(1);
})
});

View File

@@ -1,16 +0,0 @@
import * as React from 'react';
import {shallow} from 'enzyme';
import Form from "../../../src/components/manifest/Form";
describe('show depoloyment manifest page', () => {
it('should render show-deployment-manifest fields', () => {
const wrapper = shallow(<Form/>);
const manifestId = wrapper.find({name: 'manifestId'});
expect(wrapper.containsAllMatchingElements([])).toBe(true);
});
});

View File

@@ -1,7 +0,0 @@
const path = require('path');
module.exports = {
process(src, filename, config, options) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
},
};

View File

@@ -1,4 +0,0 @@
const enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
enzyme.configure({ adapter: new Adapter() });

View File

@@ -8,7 +8,9 @@
"clean": "rm -rf dist",
"build": "yarn run clean && yarn run webpack-build",
"start": "yarn run clean && webpack-dev-server --mode development --devtool inline-source-map",
"test": "jest",
"lint": "eslint src/**/*.{js,jsx,ts,tsx,json}",
"lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx,json}'",
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
"eject": "react-scripts eject"
},
"dependencies": {
@@ -33,9 +35,6 @@
"react-toastify": "^6.0.6",
"yup": "^0.32.11"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
@@ -49,11 +48,6 @@
]
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.1.2",
"@types/enzyme": "^3.10.4",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "^24.0.22",
"@types/lodash": "^4.14.149",
"@types/material-ui": "^0.21.7",
@@ -63,23 +57,19 @@
"@types/react-router-dom": "^5.1.3",
"@types/react-test-renderer": "^16.9.1",
"@types/yup": "^0.29.13",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"awesome-typescript-loader": "^5.2.1",
"copy-webpack-plugin": "^5.0.5",
"css-loader": "^3.2.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"eslint": "^6.7.2",
"eslint-plugin-react-hooks": "^4.0.4",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-fetch-mock": "^2.1.2",
"prettier": "1.19.1",
"react-test-renderer": "^16.12.0",
"ts-jest": "^24.1.0",
"prettier": "^2.8.0",
"typescript": "~3.7.2",
"webpack-cli": "^3.3.11"
},

View File

@@ -1,9 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom/extend-expect';
const enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
enzyme.configure({ adapter: new Adapter() });

2531
yarn.lock

File diff suppressed because it is too large Load Diff