Skip to content

Commit bb3e157

Browse files
afontcuKent C. Dodds
authored and
Kent C. Dodds
committed
Fix broken build (#72)
* Fix linting issue * Use config provided by cypress docs * Can't use npm ci because package-lock isn't commited
1 parent 648feb4 commit bb3e157

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ language: node_js
33
addons:
44
apt:
55
packages:
6-
- libgconf-2-4
6+
- libgconf-2-4
77
cache:
8+
# Caches $HOME/.npm when npm ci is default script command
9+
# Caches node_modules in all other cases
10+
npm: true
811
directories:
9-
- ~/.npm
12+
# we also need to cache folder with Cypress binary
13+
- ~/.cache
1014
notifications:
1115
email: false
1216
node_js: '8'

cypress/integration/commands.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('dom-testing-library commands', () => {
4040
})
4141

4242
it('getByText in container', () => {
43-
cy.get('#nested').then(subject => {
43+
return cy.get('#nested').then(subject => {
4444
cy.getByText('Button Text', {container: subject}).click()
4545
})
4646
})

0 commit comments

Comments
 (0)