Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 4, 2024
1 parent 80344d0 commit d1359b0
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 17 deletions.
7 changes: 3 additions & 4 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"files": {
"main.css": "/starter_helpi/static/css/main.259dcc6c.css",
"main.js": "/starter_helpi/static/js/main.c0ad8b55.js",
"main.js": "/starter_helpi/static/js/main.f047bde8.js",
"static/js/453.bad6c33a.chunk.js": "/starter_helpi/static/js/453.bad6c33a.chunk.js",
"static/media/logo.svg": "/starter_helpi/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg",
"index.html": "/starter_helpi/index.html",
"main.259dcc6c.css.map": "/starter_helpi/static/css/main.259dcc6c.css.map",
"main.c0ad8b55.js.map": "/starter_helpi/static/js/main.c0ad8b55.js.map",
"main.f047bde8.js.map": "/starter_helpi/static/js/main.f047bde8.js.map",
"453.bad6c33a.chunk.js.map": "/starter_helpi/static/js/453.bad6c33a.chunk.js.map"
},
"entrypoints": [
"static/css/main.259dcc6c.css",
"static/js/main.c0ad8b55.js"
"static/js/main.f047bde8.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/starter_helpi/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/starter_helpi/logo192.png"/><link rel="manifest" href="/starter_helpi/manifest.json"/><title>React App</title><script defer="defer" src="/starter_helpi/static/js/main.c0ad8b55.js"></script><link href="/starter_helpi/static/css/main.259dcc6c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/starter_helpi/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/starter_helpi/logo192.png"/><link rel="manifest" href="/starter_helpi/manifest.json"/><title>React App</title><script defer="defer" src="/starter_helpi/static/js/main.f047bde8.js"></script><link href="/starter_helpi/static/css/main.259dcc6c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1 change: 0 additions & 1 deletion static/js/main.c0ad8b55.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions static/js/main.c0ad8b55.js → static/js/main.f047bde8.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions static/js/main.f047bde8.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg

This file was deleted.

143 changes: 136 additions & 7 deletions test_report.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,150 @@
> starter_helpi@0.1.0 test
> react-scripts test --coverage

PASS src/App.test.tsx
✓ renders learn react link (38 ms)
console.error
Warning: validateDOMNesting(...): <body> cannot appear as a child of <div>.
at body
at div
at App (/home/runner/work/starter_helpi/starter_helpi/src/App.tsx:15:33)

4 |
5 | test('renders learn react link', () => {
> 6 | render(<App />);
| ^
7 | const linkElement = screen.getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });

at printWarning (node_modules/react-dom/cjs/react-dom.development.js:86:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:60:7)
at validateDOMNesting (node_modules/react-dom/cjs/react-dom.development.js:10847:7)
at createInstance (node_modules/react-dom/cjs/react-dom.development.js:10930:5)
at completeWork (node_modules/react-dom/cjs/react-dom.development.js:22187:28)
at completeUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26593:16)
at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26568:5)
at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25738:74)
at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
at act (node_modules/react/cjs/react.development.js:2582:11)
at node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
at render (node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (src/App.test.tsx:6:9)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:173:3)

FAIL src/App.test.tsx
✕ renders learn react link (69 ms)

● renders learn react link

TestingLibraryElementError: Unable to find an element with the text: /learn react/i. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
<div>
<div>
<header
class="App-header"
>
The Career Lab
</header>
<body>
<div
class="container"
>
<div
class="row"
>
<div
class="col"
>
<button
class="btn btn-primary"
type="button"
>
Basic Quiz
</button>
<p>
This is a basic quiz with X questions. It will take around Y to Z minutes to complete. The questions are simple and multiple choice.
</p>
</div>
<div
class="col"
>
<button
class="btn btn-primary"
type="button"
>
Detailed Quiz
</button>
<p>
This is a detailed quiz with X questions. It will take around Y to Z minutes to complete. The questions are answered on a scale.
</p>
</div>
</div>
</div>
</body>
<div>
<form
class=""
>
<label
class="form-label"
>
API Key:
</label>
<input
class="form-control"
placeholder="Insert API Key Here"
type="password"
/>
<br />
<button
class="Submit-Button btn btn-primary"
type="button"
>
Submit
</button>
</form>
</div>
</div>
</div>
</body>

5 | test('renders learn react link', () => {
6 | render(<App />);
> 7 | const linkElement = screen.getByText(/learn react/i);
| ^
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |

at Object.getElementError (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at getByText (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19)
at Object.<anonymous> (src/App.test.tsx:7:30)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:173:3)

--------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------|---------|----------|---------|---------|-------------------
All files | 28.57 | 16.66 | 20 | 28.57 |
App.tsx | 60 | 50 | 33.33 | 60 | 11,19-25
All files | 28.57 | 16.66 | 14.28 | 28.57 |
App.tsx | 60 | 50 | 20 | 60 | 11,19-25
index.tsx | 0 | 100 | 100 | 0 | 7-19
reportWebVitals.ts | 0 | 0 | 0 | 0 | 3-10
--------------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 2.616 s
Time: 2.665 s
Ran all test suites.
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
Expand Down

0 comments on commit d1359b0

Please sign in to comment.