Skip to content

Commit 84cc176

Browse files
committed
Merge remote-tracking branch 'upstream/task-first-branch' into solved-first-branch
2 parents 21c91c1 + a6acb43 commit 84cc176

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"build": "react-scripts build",
2121
"test": "react-scripts test",
2222
"test:cov": "react-scripts test --coverage --watchAll",
23+
"test:json": "react-scripts test --json --watchAll=false --outputFile jest-output.json --coverage",
2324
"eject": "react-scripts eject",
2425
"lint": "eslint ./src --ext .tsx --ext .ts --max-warnings 0",
2526
"eslint-output": "eslint-output ./src --ext .tsx --ext .ts --max-warnings 0",

public/tasks/task-first-branch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Task - First Branch
2+
3+
Version: 0.0.1
4+
5+
Pass a short test to have certain text on the page.

src/text.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import { render, screen } from "@testing-library/react";
3+
import App from "./App";
4+
5+
test("renders the text 'Hello World' somewhere", () => {
6+
render(<App />);
7+
const texts = screen.getAllByText(/Hello World/);
8+
expect(texts.length).toBeGreaterThanOrEqual(1);
9+
});

0 commit comments

Comments
 (0)