Skip to content

Commit

Permalink
Upgrade cypress 3.4.1 (#326)
Browse files Browse the repository at this point in the history
* upgrade Cypress to v3.4.1

* test fixtures loaded using require

* npm run if present
  • Loading branch information
bahmutov authored Aug 26, 2019
1 parent df9e0f4 commit a6d2299
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
4 changes: 3 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ defaults: &defaults
steps:
- attach_workspace:
at: ~/
# some examples have the server part
# so start it in the background
- run:
command: |
cd examples/$CIRCLE_JOB
npm run start
npm run start --if-present
name: start the server
background: true
- run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,20 @@ describe('requires fixtures', () => {
it('has country', () => {
expect(country).to.deep.equal({ name: 'United States' })
})

context('sanity JavaScript tests', () => {
// confirm that the spec information is present

it('has __dirname', () => {
expect(__dirname).to.be.a('string')
expect(__dirname).to.equal('/cypress/integration')
})

it('has __filename', () => {
expect(__filename).to.be.a('string')
expect(__filename).to.equal(
'/cypress/integration/require-fixtures-spec.js'
)
})
})
})
29 changes: 7 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"bluebird": "3.5.5",
"console.table": "0.10.0",
"cypress": "3.4.0",
"cypress": "3.4.1",
"cypress-axe": "0.5.1",
"cypress-failed-log": "2.5.1",
"cypress-file-upload": "3.3.2",
Expand Down

0 comments on commit a6d2299

Please sign in to comment.