Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture-devops-app
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
s80984
lecture-devops-app
Commits
08b36521
Commit
08b36521
authored
4 years ago
by
Lucendio
Browse files
Options
Downloads
Patches
Plain Diff
[app/client] Get test (originated from create-react-app) running
parent
147b57d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/client/package.json
+2
-1
2 additions, 1 deletion
app/client/package.json
app/client/src/App.test.js
+2
-2
2 additions, 2 deletions
app/client/src/App.test.js
with
4 additions
and
3 deletions
app/client/package.json
+
2
−
1
View file @
08b36521
...
...
@@ -68,7 +68,8 @@
},
"scripts"
:
{
"build"
:
"node scripts/build.js"
,
"test"
:
"node scripts/test.js"
"test"
:
"jest --ci"
,
"test:dev"
:
"jest"
},
"eslintConfig"
:
{
"extends"
:
"react-app"
...
...
This diff is collapsed.
Click to expand it.
app/client/src/App.test.js
+
2
−
2
View file @
08b36521
...
...
@@ -2,8 +2,8 @@ import React from 'react';
import
{
render
}
from
'
@testing-library/react
'
;
import
App
from
'
./App
'
;
test
(
'
renders
l
ea
rn react link
'
,
()
=>
{
test
(
'
renders
h
ea
der title
'
,
()
=>
{
const
{
getByText
}
=
render
(
<
App
/>
);
const
linkElement
=
getByText
(
/
learn react
/i
);
const
linkElement
=
getByText
(
/
ToDo App
/i
);
expect
(
linkElement
).
toBeInTheDocument
();
});
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