Skip to content
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

Migrate to jest 2 #1629

Merged
merged 46 commits into from Aug 16, 2020
Merged

Migrate to jest 2 #1629

merged 46 commits into from Aug 16, 2020

Commits on Aug 2, 2020

  1. refactor: use jest

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    9c2e68f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42b50c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58973bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c7b2d1e View commit details
    Browse the repository at this point in the history
  5. refactor: update tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    de51777 View commit details
    Browse the repository at this point in the history
  6. refactor: update tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    e09a8ad View commit details
    Browse the repository at this point in the history
  7. refactor: update tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    bd83440 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    90d7118 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9afa062 View commit details
    Browse the repository at this point in the history
  10. refactor: remove sinon

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    523e8bc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0fe0eb0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a992654 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b0aba13 View commit details
    Browse the repository at this point in the history
  14. chore: add missing deps

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    e179b92 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    623adc2 View commit details
    Browse the repository at this point in the history
  16. test: update tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    bf67d57 View commit details
    Browse the repository at this point in the history
  17. test: migrate more tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    97207fa View commit details
    Browse the repository at this point in the history
  18. test: continue migration

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    e92f965 View commit details
    Browse the repository at this point in the history
  19. test: refactor set methods

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    97e6270 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6c7c1e4 View commit details
    Browse the repository at this point in the history
  21. test: refactor trigger

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    d8517d0 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    08d4848 View commit details
    Browse the repository at this point in the history
  23. test: update config.spec.js

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    495e127 View commit details
    Browse the repository at this point in the history
  24. test: update mount specs

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    f29fbe5 View commit details
    Browse the repository at this point in the history
  25. test: use spyOn

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    cdce1e4 View commit details
    Browse the repository at this point in the history
  26. test: migrate tests

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    a268053 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    711017b View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    85c626f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    002f686 View commit details
    Browse the repository at this point in the history
  30. test: make scripts minimal

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    28fffd8 View commit details
    Browse the repository at this point in the history
  31. test: update import paths

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    b51ec44 View commit details
    Browse the repository at this point in the history
  32. chore: update circleci

    lmiller1990 authored and AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    014f9e6 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    4d52803 View commit details
    Browse the repository at this point in the history
  34. chore(test/setup): remove the test setup directory

    The test setup directory is no longer being used
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    1cd024c View commit details
    Browse the repository at this point in the history
  35. chore: remove @babel/polyfill

    @babel/polyfill is no longer needed as tests in browser are no longer applicable
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    e9ab677 View commit details
    Browse the repository at this point in the history
  36. chore(babel.config.js): set preset-env target to node current

    Since browser tests are no longer applicable, jest is the only tool that is actively using babel.
    The target can now be set to the current node environment, which in turn does not require additional
    polyfills (core-js, regenerator-runtime, etc)
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    29b327d View commit details
    Browse the repository at this point in the history
  37. test(setprops.spec.js): update newly added tests to Jest

    Update recently added watcher immediate tests to use jest assertions and mock functions over mocha
    chai
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    16c1244 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    96d990a View commit details
    Browse the repository at this point in the history
  39. chore(package.json): remove webpack and mocha related dependencies

    These dependencies are no longer used and can be removed from the package.json
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    178bd05 View commit details
    Browse the repository at this point in the history
  40. ci(unit tests): run Jest tests in single thread to prevent OOM exception

    Since the circle container is only 4GB, running jest tests in parallel is problematic as the
    container frequently runs out of memory. The memoryt can either be increased, or the tests can run
    in a single thread
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    dcbbb1b View commit details
    Browse the repository at this point in the history
  41. chore(package.json): move babel dependencies to dev dependencies

    Babel is now only currently used by jest or systems under test. These should now be considered
    development dependencies
    AtofStryker committed Aug 2, 2020
    Configuration menu
    Copy the full SHA
    cfd494f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2020

  1. improvement(test/setup): reimplement Browser Unit Tests

    After converting to Jest, browser tests were removed due to capatability issues. This reimplements
    the browser tests with similar techniques.
    
    All related webpack/loaders have been updated to use the latest stable
    releases
    
    Chrome/HeadlessChrome is now being used to run these tests over the deprecated
    PhantomJS
    
    Karma and Jasmine are being used as a test runner while leveraging Jest's expect/assertion and mock/stubbing libraries
    
    Highly inspired by https://github.com/tom-sherman/blog/blob/master/posts/02-running-jest-tests-in-a-browser.md.
    
    1629
    AtofStryker committed Aug 9, 2020
    Configuration menu
    Copy the full SHA
    4517528 View commit details
    Browse the repository at this point in the history
  2. chore(scripts): re add missing build scripts

    Add back build scripts that were initially removed from jest migration
    AtofStryker committed Aug 9, 2020
    Configuration menu
    Copy the full SHA
    3681110 View commit details
    Browse the repository at this point in the history
  3. chore(jsdom): remove JSDOM and JSDOM-Global

    JSDOM and JSDOM-Global are no longer used with the removal of the mocha tests. JSDOM is still used
    implicitly by jest.
    AtofStryker committed Aug 9, 2020
    Configuration menu
    Copy the full SHA
    0eb83a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2020

  1. chore: update eslintrc

    lmiller1990 committed Aug 15, 2020
    Configuration menu
    Copy the full SHA
    6cbfadf View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2020

  1. chore(karma.config.js): set singleRun to true for all runtimes

    Set singleRun option in karma to true locally and in CI so the test process always terminates when
    finished
    AtofStryker committed Aug 16, 2020
    Configuration menu
    Copy the full SHA
    afad86e View commit details
    Browse the repository at this point in the history