Skip to content

Commit f537dc4

Browse files
author
Tiffany Le-Nguyen
committed
chore: fix testing library support
1 parent f888462 commit f537dc4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

cypress/integration/test.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ describe('TypeScript spec', () => {
44
})
55

66
it('loads home page', () => {
7-
cy.get('h1')
7+
cy.findByText('Next Demo!')
88
})
99
})

cypress/support/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import './commands';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"scripts": {
1111
"build:demo": "next build demo",
12-
"cy:open": "cypress open --config-file ../cypress/config/all.json",
12+
"cy:open": "cypress open --config-file cypress/config/all.json",
1313
"cy:run": "cypress run --config-file ../cypress/config/ci.json",
1414
"dev:demo": "next dev demo",
1515
"format": "run-s format:check-fix:*",

0 commit comments

Comments
 (0)