Skip to content

chore(package): update jasmine to version 3.0.0 #4553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 17, 2018

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Feb 8, 2018

Closes #4547

  • Use consts / lets in tests as jasmine 3.0 don't like vars.
  • Fixes a few flaky tests
  • Keep the tests non random as it still yield a few issues on shared variables.

@flovilmart flovilmart force-pushed the greenkeeper/jasmine-3.0.0 branch from 0756bcd to 996fe96 Compare February 16, 2018 14:26
@codecov
Copy link

codecov bot commented Feb 16, 2018

Codecov Report

Merging #4553 into master will increase coverage by 0.45%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4553      +/-   ##
==========================================
+ Coverage   92.87%   93.32%   +0.45%     
==========================================
  Files         118      118              
  Lines        8491     8931     +440     
==========================================
+ Hits         7886     8335     +449     
+ Misses        605      596       -9
Impacted Files Coverage Δ
src/RestWrite.js 93.46% <0%> (+0.18%) ⬆️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 98.1% <0%> (+0.98%) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 97.14% <0%> (+1.6%) ⬆️
src/Adapters/Auth/meetup.js 89.47% <0%> (+5.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ec7785...1f741b4. Read the comment docs.

With jasmine 3.0, the randomization engine was making the test fails because of the scope of `var`
@dplewis
Copy link
Member

dplewis commented Feb 17, 2018

f7b849c5661ad2aaeae52610feb1f2265105e45ee3f932196d23efd18638d35e

@flovilmart
Copy link
Contributor Author

Yeah, find replace all by const, and fix all wrong conts

@dplewis
Copy link
Member

dplewis commented Feb 17, 2018

@flovilmart Is your email florent _ at _ flovilmart _ dot _ com?

@flovilmart flovilmart force-pushed the greenkeeper/jasmine-3.0.0 branch from 484aff3 to 67cbcaa Compare February 17, 2018 01:29
@flovilmart
Copy link
Contributor Author

@dplewis yep it is

@flovilmart flovilmart force-pushed the greenkeeper/jasmine-3.0.0 branch from 67cbcaa to 1f741b4 Compare February 17, 2018 02:20
@flovilmart flovilmart requested a review from dplewis February 17, 2018 14:29
Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@flovilmart flovilmart merged commit b754d51 into master Feb 17, 2018
@flovilmart flovilmart deleted the greenkeeper/jasmine-3.0.0 branch February 17, 2018 14:55
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* chore(package): update jasmine to version 3.0.0

Closes parse-community#4547

* Fixes failing tests for jasmine 3.0

Starting 3.0, done(something) will fail

* Update tests so they dont leverage var, but let and const

With jasmine 3.0, the randomization engine was making the test fails because of the scope of `var`

* Remove randomizer

* Use same adapter for PG tests, drop table to ensure the tests dont side effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants