Skip to content

Commit eb1d1ab

Browse files
committed
test: remove cypress
1 parent da930d9 commit eb1d1ab

File tree

14 files changed

+58
-673
lines changed

14 files changed

+58
-673
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: v1-dependencies-{{ checksum "yarn.lock" }}
4242

4343
# run tests!
44-
- run: yarn jest
44+
- run: yarn test
4545

4646
workflows:
4747
version: 2

cypress.json

-3
This file was deleted.

cypress/fixtures/example.json

-5
This file was deleted.

cypress/fixtures/profile.json

-5
This file was deleted.

cypress/fixtures/users.json

-232
This file was deleted.

cypress/integration/default.test.js

-32
This file was deleted.

cypress/plugins/index.js

-17
This file was deleted.

cypress/support/commands.js

-25
This file was deleted.

cypress/support/index.js

-8
This file was deleted.

cypress/videos/default.test.js.mp4

-46.8 KB
Binary file not shown.

package.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
"serve": "gatsby serve --port 8000",
1212
"develop": "gatsby develop",
1313
"lint": "eslint .",
14-
"cy:open": "cypress open",
15-
"cy:run": "cypress run",
16-
"test": "yarn test:e2e:ci",
17-
"test:e2e": "start-server-and-test develop 8000 cy:open",
18-
"test:e2e:ci": "start-server-and-test develop 8000 cy:run",
19-
"jest": "jest"
14+
"test": "jest ."
2015
},
2116
"keywords": [
2217
"gatsby"
@@ -74,15 +69,13 @@
7469
"devDependencies": {
7570
"@commitlint/cli": "8.3.5",
7671
"@commitlint/config-conventional": "8.3.4",
77-
"@testing-library/cypress": "6.0.0",
7872
"@testing-library/dom": "7.2.1",
7973
"@testing-library/jest-dom": "5.5.0",
8074
"@testing-library/react": "10.0.3",
8175
"babel-eslint": "10.1.0",
8276
"babel-jest": "25.4.0",
8377
"babel-preset-gatsby": "0.3.3",
8478
"commitizen": "4.0.4",
85-
"cypress": "4.3.0",
8679
"cz-conventional-changelog": "3.1.0",
8780
"eslint": "6.8.0",
8881
"eslint-config-airbnb": "18.1.0",

setup-test-env.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import "@testing-library/jest-dom/extend-expect"

src/components/avatar.test.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from "react"
2+
import { render } from "@testing-library/react"
3+
import Avatar from "./avatar"
4+
5+
test("Displays the correct title", () => {
6+
const { findByText } = render(<Avatar />)
7+
expect(findByText("Brian Andrews")).toBeTruthy()
8+
})

0 commit comments

Comments
 (0)