Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Test Jest Puppeteer GitlabCI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Loïs Poujade
Test Jest Puppeteer GitlabCI
Commits
f4d922bb
Verified
Commit
f4d922bb
authored
2 years ago
by
Loïs Poujade
Browse files
Options
Downloads
Patches
Plain Diff
upgraded material ui
parent
95529aee
No related branches found
No related tags found
No related merge requests found
Pipeline
#1194
passed
2 years ago
Stage: test
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
__tests__/main.js
+3
-4
3 additions, 4 deletions
__tests__/main.js
package-lock.json
+4440
-1383
4440 additions, 1383 deletions
package-lock.json
package.json
+15
-9
15 additions, 9 deletions
package.json
setupJest.js
+3
-2
3 additions, 2 deletions
setupJest.js
with
4461 additions
and
1398 deletions
__tests__/main.js
+
3
−
4
View file @
f4d922bb
import
{
withStyles
}
from
'
@material-ui/core
'
;
import
{
withStyles
}
from
'
@mui/material
'
;
import
{
alpha
}
from
'
@material-ui/core/styles/colorManipulator
'
;
import
ClosedCaption
from
'
@mui/icons-material/ClosedCaption
'
;
import
ClosedCaption
from
'
@material-ui/icons/ClosedCaption
'
;
import
Skeleton
from
'
@mui/lab/Skeleton
'
;
import
Skeleton
from
'
@material-ui/lab/Skeleton
'
;
describe
(
'
Open example
'
,
()
=>
{
describe
(
'
Open example
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
package-lock.json
+
4440
−
1383
View file @
f4d922bb
This diff is collapsed.
Click to expand it.
package.json
+
15
−
9
View file @
f4d922bb
...
@@ -16,22 +16,28 @@
...
@@ -16,22 +16,28 @@
"
@babel/plugin-transform-runtime
"
:
"
^7.19.6
"
,
"
@babel/plugin-transform-runtime
"
:
"
^7.19.6
"
,
"
@babel/preset-env
"
:
"
^7.20.2
"
,
"
@babel/preset-env
"
:
"
^7.20.2
"
,
"
@babel/preset-react
"
:
"
^7.18.6
"
,
"
@babel/preset-react
"
:
"
^7.18.6
"
,
"
@mui/icons-material
"
:
"
^5.10.16
"
,
"
@mui/material
"
:
"
^5.10.16
"
,
"
@mui/styles
"
:
"
^5.10.16
"
,
"
babel-jest
"
:
"
^27.5.1
"
,
"
babel-jest
"
:
"
^27.5.1
"
,
"
babel-plugin-lodash
"
:
"
^3.3.4
"
,
"
babel-plugin-lodash
"
:
"
^3.3.4
"
,
"
babel-plugin-macros
"
:
"
^3.1.0
"
,
"
babel-plugin-macros
"
:
"
^3.1.0
"
,
"
babel-plugin-transform-react-remove-prop-types
"
:
"
^0.4.24
"
,
"
babel-plugin-transform-react-remove-prop-types
"
:
"
^0.4.24
"
,
"
enzyme
"
:
"
^3.11.0
"
,
"
enzyme
"
:
"
^3.11.0
"
,
"
enzyme-adapter-react-16
"
:
"
^1.15.7
"
,
"
http-server
"
:
"
^14.1.1
"
,
"
http-server
"
:
"
^14.1.0
"
,
"
isomorphic-unfetch
"
:
"
^3.1.0
"
,
"
isomorphic-unfetch
"
:
"
^3.1.0
"
,
"
jest
"
:
"
^27.5.1
"
,
"
jest
"
:
"
^27.5.1
"
,
"
jest-fetch-mock
"
:
"
^3.0.
0
"
,
"
jest-fetch-mock
"
:
"
^3.0.
3
"
,
"
jest-puppeteer
"
:
"
^6.1.
0
"
,
"
jest-puppeteer
"
:
"
^6.1.
1
"
,
"
jsdom
"
:
"
^20.0.3
"
,
"
jsdom
"
:
"
^20.0.3
"
,
"
puppeteer
"
:
"
^13.5.1
"
,
"
puppeteer
"
:
"
^13.7.0
"
,
"
react-i18next
"
:
"
^12.0.0
"
,
"
react-i18next
"
:
"
^12.0.0
"
"
@material-ui/core
"
:
"
^4.12.3
"
,
},
"
@material-ui/icons
"
:
"
^4.9.1
"
,
"dependencies"
:
{
"
@material-ui/lab
"
:
"
^4.0.0-alpha.53
"
"
@emotion/react
"
:
"
^11.10.5
"
,
"
@emotion/styled
"
:
"
^11.10.5
"
,
"
@mui/lab
"
:
"
^5.0.0-alpha.110
"
,
"
react
"
:
"
^17.0.2
"
,
"
react-dom
"
:
"
^17.0.0
"
}
}
}
}
This diff is collapsed.
Click to expand it.
setupJest.js
+
3
−
2
View file @
f4d922bb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
{
JSDOM
}
from
'
jsdom
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
{
JSDOM
}
from
'
jsdom
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
fetch
from
'
jest-fetch-mock
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
fetch
from
'
jest-fetch-mock
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
Enzyme
from
'
enzyme
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
Enzyme
from
'
enzyme
'
;
// eslint-disable-line import/no-extraneous-dependencies
import
Adapter
from
'
enzyme-adapter-react-16
'
;
// eslint-disable-line import/no-extraneous-dependencies
//
import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/no-extraneous-dependencies
const
jsdom
=
new
JSDOM
(
'
<!doctype html><html><body><div id="main"></div></body></html>
'
,
{
url
:
'
https://localhost
'
});
const
jsdom
=
new
JSDOM
(
'
<!doctype html><html><body><div id="main"></div></body></html>
'
,
{
url
:
'
https://localhost
'
});
const
{
window
}
=
jsdom
;
const
{
window
}
=
jsdom
;
...
@@ -55,7 +55,8 @@ const copyProps = (src, target) => {
...
@@ -55,7 +55,8 @@ const copyProps = (src, target) => {
*/
*/
copyProps
(
window
,
global
);
copyProps
(
window
,
global
);
Enzyme
.
configure
({
adapter
:
new
Adapter
()
});
// Enzyme.configure({ adapter: new Adapter() });
// Enzyme.configure();
jest
.
mock
(
'
react-i18next
'
,
()
=>
({
jest
.
mock
(
'
react-i18next
'
,
()
=>
({
// this mock makes sure any components using the translate HoC receive the t function as a prop
// this mock makes sure any components using the translate HoC receive the t function as a prop
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment