-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use jest * refactor: strip flow types when running tests with jest * refactor: update attachTo and destroy specs * refactor: continue moving to jest * refactor: update tests * refactor: update tests * refactor: update tests * refactor: continue jest migration * refactor: continue jest migration * refactor: remove sinon * refactor: update tests to use jest * refactor: update tests to use jest * refactor: add jsx plugin and update scopedSlots spec * chore: add missing deps * test: add class component and update stubs tests * test: update tests * test: migrate more tests * test: continue migration * test: refactor set methods * test: finish refactor set methods * test: refactor trigger * test: refactor wrapper-array specs * test: update config.spec.js * test: update mount specs * test: use spyOn * test: migrate tests * test: placeholder to prevent false failure * test: remove karma, sinon, chai and see what happens * test: do not use compiled dist files for tests * test: make scripts minimal * test: update import paths * chore: update circleci * chore(yarn.lock): dedupe the yarn lock file to run jest tests * chore(test/setup): remove the test setup directory The test setup directory is no longer being used * chore: remove @babel/polyfill @babel/polyfill is no longer needed as tests in browser are no longer applicable * 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) * 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 * fix(docs/): re include vuepress build scripts to deploy docs * chore(package.json): remove webpack and mocha related dependencies These dependencies are no longer used and can be removed from the package.json * 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 * 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 * 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 * chore(scripts): re add missing build scripts Add back build scripts that were initially removed from jest migration * 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. * chore: update eslintrc * 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 Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
- Loading branch information
1 parent
ea2a571
commit 60c1bce
Showing
101 changed files
with
4,263 additions
and
3,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
moduleNameMapper: { | ||
'^~(.*)$': '<rootDir>/test/$1', | ||
'^packages/(.*)$': '<rootDir>/packages/$1', | ||
'\\.(css|less|scss|sass)$': 'identity-obj-proxy' | ||
}, | ||
transform: { | ||
'.*\\.(vue)$': 'vue-jest', | ||
'^.+\\.js$': '<rootDir>/node_modules/babel-jest' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.