aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-28 00:13:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commita39ffcd01a2c07408a36b469745da75463da1ec4 (patch)
treefc115dbbebaf49113632c215cceefb0c35a81989
parent1a4299ee7035c943b6d5c93932a87d1096c9c726 (diff)
babel-jest
-rw-r--r--vnext/__mocks__/styleMock.js1
-rw-r--r--vnext/package.json16
-rw-r--r--vnext/yarn.lock31
3 files changed, 31 insertions, 17 deletions
diff --git a/vnext/__mocks__/styleMock.js b/vnext/__mocks__/styleMock.js
new file mode 100644
index 00000000..7c6d6c73
--- /dev/null
+++ b/vnext/__mocks__/styleMock.js
@@ -0,0 +1 @@
+module.exports = {} \ No newline at end of file
diff --git a/vnext/package.json b/vnext/package.json
index 3a54831d..d70aeba2 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -29,7 +29,7 @@
"error-overlay-webpack-plugin": "^0.1.5",
"eslint": "^5.9.0",
"eslint-plugin-babel": "^5.3.0",
- "eslint-plugin-jest": "^22.0.0",
+ "eslint-plugin-jest": "^22.1.0",
"eslint-plugin-only-ascii": "^0.0.0",
"eslint-plugin-react": "^7.11.1",
"file-loader": "^2.0.0",
@@ -47,7 +47,7 @@
"react-test-renderer": "^16.6.3",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.1.0",
- "webpack": "^4.26.0",
+ "webpack": "^4.26.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
},
@@ -78,17 +78,25 @@
"@babel/preset-react"
]
},
+ "jest": {
+ "moduleNameMapper": {
+ "\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.js"
+ },
+ "transform": {
+ "^.+\\.js$": "babel-jest"
+ }
+ },
"dependencies": {
"@babel/polyfill": "^7.0.0",
"axios": "^0.18.0",
"immutability-helper": "^2.8.1",
"moment": "^2.22.2",
- "qs": "^6.5.2",
+ "qs": "^6.6.0",
"react": "16.6.3",
"react-content-loader": "^3.2.0",
"react-cookies": "^0.1.0",
"react-dom": "16.6.3",
"react-router-dom": "^4.3.1",
- "url-polyfill": "^1.1.0"
+ "url-polyfill": "^1.1.1"
}
}
diff --git a/vnext/yarn.lock b/vnext/yarn.lock
index 98c0bc5e..02693575 100644
--- a/vnext/yarn.lock
+++ b/vnext/yarn.lock
@@ -3121,10 +3121,10 @@ eslint-plugin-babel@^5.3.0:
dependencies:
eslint-rule-composer "^0.3.0"
-eslint-plugin-jest@^22.0.0:
- version "22.0.0"
- resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.0.0.tgz#87dc52bbdd47f37f23bf2b10bb8469458bb3ed68"
- integrity sha512-YOj8cYI5ZXEZUrX2kUBLachR1ffjQiicIMBoivN7bXXHnxi8RcwNvmVzwlu3nTmjlvk5AP3kIpC5i8HcinmhPA==
+eslint-plugin-jest@^22.1.0:
+ version "22.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.1.0.tgz#9a4dfa3367563e8301560a7fb92ec309096dbca3"
+ integrity sha512-WcQd5LxEoAS20zuWEAd8CX0pVC+gGInZPcsoYvK5w7BrEJNmltyTxYYh1r0ct4GsahD2GvNySlcTcLtK2amFZA==
eslint-plugin-only-ascii@^0.0.0:
version "0.0.0"
@@ -7386,11 +7386,16 @@ q@^1.1.2:
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
-qs@6.5.2, qs@^6.5.2, qs@~6.5.2:
+qs@6.5.2, qs@~6.5.2:
version "6.5.2"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
+qs@^6.6.0:
+ version "6.6.0"
+ resolved "https://registry.yarnpkg.com/qs/-/qs-6.6.0.tgz#a99c0f69a8d26bf7ef012f871cdabb0aee4424c2"
+ integrity sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==
+
querystring-es3@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
@@ -8994,10 +8999,10 @@ url-parse@^1.1.8, url-parse@^1.4.3:
querystringify "^2.0.0"
requires-port "^1.0.0"
-url-polyfill@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.0.tgz#d34e1a596d954b864bc8608f84c592820df422db"
- integrity sha512-QAbzqCwd84yA6VyjV30aZXla+lrRmczDurvlsVnK+tFOu677ZNGz8shcFWQRp5BF9/z7qvNiCQLqpWPtVoUEBg==
+url-polyfill@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.1.tgz#e7488a6dc95b688c19c524ab4aa19d256f1fe7e2"
+ integrity sha512-pvplRmxW8xvlPbx8dMrsTja7P8T3DGdHG/it21lj1et0WaaP/vozgWHWt+dkXlDR5v6ggEazeKyyMT1HCk+ydg==
url@^0.11.0:
version "0.11.0"
@@ -9231,10 +9236,10 @@ webpack-sources@^1.1.0, webpack-sources@^1.3.0:
source-list-map "^2.0.0"
source-map "~0.6.1"
-webpack@^4.26.0:
- version "4.26.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.26.0.tgz#adbe80b869148c8d108b7d88965d00d72b3178de"
- integrity sha512-J/dP9SJIc5OtX2FZ/+U9ikQtd6H6Mcbqt0xeXtmPwYGDKf8nkbOQQA9KL2Y0rJOsN1Al9Pdn+/j63X58ub8gvQ==
+webpack@^4.26.1:
+ version "4.26.1"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.26.1.tgz#ff3a9283d363c07b3494dfa702d08f4f2ef6cb39"
+ integrity sha512-i2oOvEvuvLLSuSCkdVrknaxAhtUZ9g+nLSoHCWV0gDzqGX2DXaCrMmMUpbRsTSSLrUqAI56PoEiyMUZIZ1msug==
dependencies:
"@webassemblyjs/ast" "1.7.11"
"@webassemblyjs/helper-module-context" "1.7.11"