-
Notifications
You must be signed in to change notification settings - Fork 668
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
Migrate to jest 2 #1629
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
9c2e68f
refactor: use jest
lmiller1990 42b50c9
refactor: strip flow types when running tests with jest
lmiller1990 58973bf
refactor: update attachTo and destroy specs
lmiller1990 c7b2d1e
refactor: continue moving to jest
lmiller1990 de51777
refactor: update tests
lmiller1990 e09a8ad
refactor: update tests
lmiller1990 bd83440
refactor: update tests
lmiller1990 90d7118
refactor: continue jest migration
lmiller1990 9afa062
refactor: continue jest migration
lmiller1990 523e8bc
refactor: remove sinon
lmiller1990 0fe0eb0
refactor: update tests to use jest
lmiller1990 a992654
refactor: update tests to use jest
lmiller1990 b0aba13
refactor: add jsx plugin and update scopedSlots spec
lmiller1990 e179b92
chore: add missing deps
lmiller1990 623adc2
test: add class component and update stubs tests
lmiller1990 bf67d57
test: update tests
lmiller1990 97207fa
test: migrate more tests
lmiller1990 e92f965
test: continue migration
lmiller1990 97e6270
test: refactor set methods
lmiller1990 6c7c1e4
test: finish refactor set methods
lmiller1990 d8517d0
test: refactor trigger
lmiller1990 08d4848
test: refactor wrapper-array specs
lmiller1990 495e127
test: update config.spec.js
lmiller1990 f29fbe5
test: update mount specs
lmiller1990 cdce1e4
test: use spyOn
lmiller1990 a268053
test: migrate tests
lmiller1990 711017b
test: placeholder to prevent false failure
lmiller1990 85c626f
test: remove karma, sinon, chai and see what happens
lmiller1990 002f686
test: do not use compiled dist files for tests
lmiller1990 28fffd8
test: make scripts minimal
lmiller1990 b51ec44
test: update import paths
lmiller1990 014f9e6
chore: update circleci
lmiller1990 4d52803
chore(yarn.lock): dedupe the yarn lock file to run jest tests
AtofStryker 1cd024c
chore(test/setup): remove the test setup directory
AtofStryker e9ab677
chore: remove @babel/polyfill
AtofStryker 29b327d
chore(babel.config.js): set preset-env target to node current
AtofStryker 16c1244
test(setprops.spec.js): update newly added tests to Jest
AtofStryker 96d990a
fix(docs/): re include vuepress build scripts to deploy docs
AtofStryker 178bd05
chore(package.json): remove webpack and mocha related dependencies
AtofStryker dcbbb1b
ci(unit tests): run Jest tests in single thread to prevent OOM exception
AtofStryker cfd494f
chore(package.json): move babel dependencies to dev dependencies
AtofStryker 4517528
improvement(test/setup): reimplement Browser Unit Tests
AtofStryker 3681110
chore(scripts): re add missing build scripts
AtofStryker 0eb83a1
chore(jsdom): remove JSDOM and JSDOM-Global
AtofStryker 6cbfadf
chore: update eslintrc
lmiller1990 afad86e
chore(karma.config.js): set singleRun to true for all runtimes
AtofStryker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few issues in CI recently in regards to this guy in vue 2.3. Looks like I introduced a small regression in VTU for
setProps
for vue version 2.3 in #1618. The stack trace was a bit difficult to track down, but this should fix the issues seen