Skip to content

Commit

Permalink
Merge pull request #297 from jdi-testing/issue_283
Browse files Browse the repository at this point in the history
add unit tests
  • Loading branch information
MariiaNebesnova authored Aug 20, 2021
2 parents 2b03724 + 90b2f37 commit b40144c
Show file tree
Hide file tree
Showing 11 changed files with 538 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"camelcase": 0,
"max-len": [1, { "code": 120 }],
"object-curly-spacing": 0,
"comma-dangle": 0
"comma-dangle": 0,
"react/prop-types": [
0
]
}
}
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"rvest.vs-code-prettier-eslint"
]
}
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
setupFilesAfterEnv: ['./jest.setup.js'],
};
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Object.assign(global, require('jest-chrome'));
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "JDN",
"description": "",
"devtools_page": "index.html",
"version": "3.0.40",
"version": "3.0.41",
"permissions": [
"activeTab",
"tabs",
Expand Down
164 changes: 164 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jdi-react-extension",
"version": "3.0.40",
"version": "3.0.41",
"description": "jdi react extension",
"scripts": {
"start": "npm run webpack",
Expand All @@ -9,7 +9,8 @@
"build": "webpack",
"server": "node server.js",
"prettier": "prettier",
"patch": "npx mversion patch"
"patch": "npx mversion patch",
"test": "jest"
},
"main": "src/js/main.js",
"repository": {
Expand Down Expand Up @@ -67,6 +68,7 @@
"@babel/preset-react": "^7.12.13",
"@babel/runtime": "^7.13.10",
"@svgr/webpack": "^5.5.0",
"@testing-library/react": "^12.0.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-transform-class-properties": "^6.24.1",
Expand All @@ -87,6 +89,7 @@
"file-saver": "^2.0.5",
"html-webpack-plugin": "^5.3.1",
"jest": "^26.6.3",
"jest-chrome": "^0.7.2",
"json-loader": "^0.5.7",
"less": "^4.1.1",
"less-loader": "^8.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/js/blocks/autoFind/AutoFind.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
useAutoFind,
xpathGenerationStatus,
} from "./autoFindProvider/AutoFindProvider";
import { connector } from "./autoFindProvider/connector";

import "./slider.less";
import Layout, { Content, Footer } from "antd/lib/layout/layout";
Expand Down
Loading

0 comments on commit b40144c

Please sign in to comment.