Skip to content

Add warning about scoped Slot implementation #1212

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

Closed
wants to merge 125 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
57aab16
docs(mocha-webpack): replace mocha-webpack by mochapack fork
Jan 14, 2019
64caba7
Add warning about scoped Slot implementation
LinusBorg Apr 19, 2019
a433c91
docs: update Karma docs link (#1208)
schumilin Apr 23, 2019
a523085
docs(zh): update translation (#1194)
Jinjiang Apr 23, 2019
aeb1b49
Update docs/api/options.md
wiese Apr 23, 2019
ff7d2f0
adjust formatting
LinusBorg Apr 24, 2019
ecfe228
docs: update Russian translation (#1215)
Apr 26, 2019
1701b30
refactor(types): use Component definition from Vue core (#1213)
Apr 27, 2019
a802b32
docs: add example for trigger with modifier keys (#1203)
dnutiu Apr 27, 2019
23e496b
docs(wrapper): сlarify attachedToDocument meaning in docs (#1214)
Apr 27, 2019
5e04331
fix: polyfill Element.matches for IE < 11 (#1230)
markbrouch May 11, 2019
2a4c6ef
fix(types): allow `false` as a component stub value (#1231)
garyo May 16, 2019
99336c4
feat: add option to pretty print html components (#1229)
addisonssense May 18, 2019
10ea249
docs: update common-tips.md (#1249)
7inspire Jun 5, 2019
8a74a15
chore: use config file for Prettier (#1247)
winniehell Jun 5, 2019
950763f
fix: respect "hidden" attributes in isVisible() (#1257)
stevegrunwell Jun 12, 2019
6d27483
docs(zh): updated (#1263)
Jinjiang Jun 24, 2019
b3623f7
docs: update common-tips.md (#1290)
atilacamurca Aug 8, 2019
a65da38
docs: correct `$nexTick` -> `$nextTick` (#1282)
LionKenedi95 Aug 11, 2019
a9eea7b
fix: add $set scoped slot helper (#1287)
piktur Aug 11, 2019
9dc90a3
Fixed typo (#1296)
livesega Aug 16, 2019
7968540
docs: fix Lerna link in CONTRIBUTING.md (#1299)
tomasbjerre Sep 8, 2019
ad602fc
chore: bump lodash to ^4.17.15 to fix vulnerability (#1297)
lmillucci Sep 8, 2019
393b842
Merge branch 'dev' into dev
alexbonhomme Sep 11, 2019
a0f35d2
docs(cn): fix error in testing-async-component.md (#1343)
xhwgood Nov 8, 2019
5c61b29
Update dependencies and compatibility tests (#1341)
vvanpo Nov 8, 2019
b0d3623
Use `mount()` consistently in Wrapper documentation (#1340)
vvanpo Nov 8, 2019
40ba658
Added async/await example (#1338)
karatekaneen Nov 8, 2019
56e7f4b
Fixed syntax mistake (`shallowMount` => `mount`) (#1336)
nonsocode Nov 8, 2019
a0911ba
Add link to trigger events. (#1324)
Nov 8, 2019
20f3c0c
chore(deps): bump sshpk from 1.13.1 to 1.16.1 (#1347)
dependabot[bot] Nov 8, 2019
4131af2
chore(deps): bump fstream from 1.0.11 to 1.0.12 (#1346)
dependabot[bot] Nov 8, 2019
62703fc
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2 (#1345)
dependabot[bot] Nov 8, 2019
d210eba
chore(deps): bump macaddress from 0.2.8 to 0.2.9 (#1344)
dependabot[bot] Nov 8, 2019
1df4870
chore(deps): bump eslint from 4.18.1 to 4.18.2 (#1350)
dependabot[bot] Nov 8, 2019
d6139fe
chore(deps): bump stringstream from 0.0.5 to 0.0.6 (#1349)
dependabot[bot] Nov 8, 2019
3163eda
chore(deps): bump lodash.template from 4.4.0 to 4.5.0 (#1348)
dependabot[bot] Nov 8, 2019
d19ad5e
Update props.md. Text correction (#1310)
WhoisUnknown Nov 9, 2019
4aa5994
Fix typos in russian translation of options.md (#1334)
AleksandrSl Nov 9, 2019
90b2af7
fix: typo. (#1312)
Meowu Nov 9, 2019
3bf5912
add favicon (#1211)
cjpearson Nov 9, 2019
b05c9d0
Add guide on next tick (#1156)
eddyerburgh Nov 9, 2019
ef5bc3c
docs: remove sync mode from docs (#1142)
eddyerburgh Nov 10, 2019
913f047
Support composition api variable for provider
Nov 22, 2019
661ecec
Add files for flow support in vscode and updated flow to 0.111.x
Nov 22, 2019
3586336
Add test for injection on composition api component.
Nov 22, 2019
8667d19
Fix prettier on vscode workspace settings.
Nov 22, 2019
eef7ae6
More prettier changes
Nov 22, 2019
07e5eef
Removed unused imports from injection composition vue file
Nov 22, 2019
cf843c9
Even more prettier.
Nov 22, 2019
e04ad05
refactor: format
eddyerburgh Nov 28, 2019
b7c5462
chore(release): publish v1.0.0-beta.30
eddyerburgh Nov 28, 2019
72b6578
refactor: format
eddyerburgh Nov 28, 2019
3115396
chore(release): add v1.0.0-beta.30 dist files
eddyerburgh Nov 28, 2019
9b516e5
fix: whitelist tags to be ignored with `disabled` attribute
hiendv Dec 4, 2019
7ca3142
(docs): Add guide for some useful libraries for testing
lmiller1990 Dec 16, 2019
46583c8
(docs): add a guide on testing without a build step in node.js
lmiller1990 Dec 16, 2019
ddffd8a
(docs): fix linting in docs
lmiller1990 Dec 16, 2019
a0bf7f9
(docs): run prettier
lmiller1990 Dec 16, 2019
47de198
(docs): run formatter
lmiller1990 Dec 16, 2019
7a7c9c3
(docs): change how we refer to vue-test-utils
lmiller1990 Dec 16, 2019
18e279a
(docs): refer to Vue Test Utils correctly
lmiller1990 Dec 16, 2019
e1c1b95
Allow selectors in template option when testing
earnubs Oct 14, 2019
006f161
Make conditional spec easier to read
earnubs Dec 16, 2019
ff500bc
Run prettier
earnubs Dec 16, 2019
001e5de
Exclude querySelector test from envs with no window object
earnubs Dec 16, 2019
7b25c5a
Run prettier
earnubs Dec 16, 2019
90e2782
Merge pull request #1372 from vuejs/docs/issue-1060-add-libraries-links
lmiller1990 Dec 17, 2019
0e97717
fix: translation missing (#1374)
kazupon Dec 17, 2019
1a96878
(docs): update webpack link
lmiller1990 Dec 17, 2019
0a72913
Merge pull request #1320 from earnubs/template-query-selector-support
lmiller1990 Dec 17, 2019
7f35e66
test(wrapper): split disabled attribute tests for invalid and invalid…
hiendv Dec 17, 2019
9025610
Adding notes about async vs. sync mode. Adding placeholder for mockin…
Dec 17, 2019
d86684d
docs: add an example for slots components with props
hiendv Dec 17, 2019
05f7720
(docs): add notes on mocking transitions and run linter
lmiller1990 Dec 17, 2019
5269548
(docs): improve guide
lmiller1990 Dec 17, 2019
dcfee27
(docs): apply feedback and fix typos
Dec 18, 2019
d681e76
Merge pull request #1362 from hiendv/fix-disabled-attr
JessicaSachs Dec 18, 2019
79eab20
Merge pull request #1375 from JessicaSachs/docs/beta30-notes
JessicaSachs Dec 18, 2019
af37800
Merge pull request #1373 from vuejs/docs/issue-1192-vue-test-utils-wi…
JessicaSachs Dec 18, 2019
70e8651
Update for PR comments
Dec 17, 2019
4286b7e
Support composition api variable for provider
Nov 22, 2019
4c14b61
Add files for flow support in vscode and updated flow to 0.111.x
Nov 22, 2019
142fe1d
Add test for injection on composition api component.
Nov 22, 2019
f2d0524
Fix prettier on vscode workspace settings.
Nov 22, 2019
dc5d030
More prettier changes
Nov 22, 2019
ba37406
Removed unused imports from injection composition vue file
Nov 22, 2019
ad98384
Even more prettier.
Nov 22, 2019
a0f1661
Update for PR comments
Dec 17, 2019
cb12659
docs: simplify options API for slots
hiendv Dec 18, 2019
be3ee28
chore: prettier docs/api
hiendv Dec 18, 2019
58b5fc5
Fix linting
Dec 18, 2019
9552017
Revert flow to fix issues
Dec 18, 2019
1888864
Merge pull request #1376 from hiendv/docs-api-options-slots
JessicaSachs Dec 18, 2019
a05b499
Merge pull request #1354 from Incognitus-Io/dev
JessicaSachs Dec 18, 2019
f156698
chore: Rename selector to selectorString in ErrorWrapper
winniehell May 30, 2019
46f884e
chore: Build selector string in ErrorWrapper
winniehell May 30, 2019
4ec04f0
feat: Add selector property to BaseWrapper interface
winniehell May 31, 2019
aab0bf5
feat: Store selector in Wrapper.find() / .findAll()
winniehell May 31, 2019
ff4e0fc
chore: Remove selectorString from ErrorWrapper
winniehell May 31, 2019
7c7b949
Merge pull request #1248 from winniehell/winniehell-wrapper-selector
JessicaSachs Dec 18, 2019
9aa178c
fix: use the keyCodes provided in options from wrapper.trigger
Dec 18, 2019
771075f
test: ensure Wrapper.setChecked() is a no-op for checked checkboxes
vvanpo Dec 19, 2019
1ee1fa0
test: ensure Wrapper.setChecked() is a no-op for selected radios
vvanpo Dec 19, 2019
562bf11
fix: ensure Wrapper.setChecked() idempotence
vvanpo Dec 19, 2019
f63eda2
test: fix Wrapper.setChecked() test compatibility
vvanpo Dec 19, 2019
e229e37
test: ensure Wrapper.setSelected() idempotency
vvanpo Dec 19, 2019
90a7ea8
fix: ensure Wrapper.setSelected() idempotency
vvanpo Dec 19, 2019
8ec4bfc
style: fix linting errors
vvanpo Dec 19, 2019
cdc0762
test: follow convention for scenario statements
vvanpo Dec 19, 2019
6fdc179
Merge pull request #1378 from vuejs/fix/issue-1285-custom-keycodes-fa…
Dec 20, 2019
d9e2663
Fix failing formatter
afontcu Dec 21, 2019
e33a797
docs(mocha-webpack): replace mocha-webpack with mochapack
afontcu Dec 21, 2019
0f91426
docs: added example usage for localVue
NataliaTepluhina Dec 21, 2019
089a6ca
Merge pull request #1381 from NataliaTepluhina/docs/fix-localVue-example
JessicaSachs Dec 21, 2019
3f9aebf
docs: Add example for 'listeners' mount option
rahulcs Dec 22, 2019
9a1fc6d
(docs): include guide about testing with node
lmiller1990 Dec 26, 2019
0dd7458
chore: remove gh-pages
Jan 3, 2020
56573b1
Merge pull request #1388 from vuejs/chore/remove-gh-pages
lmiller1990 Jan 3, 2020
916b07f
Merge pull request #1380 from vvanpo/set-selected
lmiller1990 Jan 3, 2020
d70627d
Add warning about scoped Slot implementation
LinusBorg Apr 19, 2019
0aab30d
Update docs/api/options.md
wiese Apr 23, 2019
ba66e13
adjust formatting
LinusBorg Apr 24, 2019
a23860b
Merge branch 'LinusBorg-docs-scopedSlots-1' of https://github.com/vue…
lmiller1990 Jan 3, 2020
b4a30f6
(docs): run prettier
lmiller1990 Jan 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 3 additions & 63 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,48 +60,13 @@ jobs:
- run:
name: yarn test
command: yarn test
test_version_2.0.8:
test_compat:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.0.8"
test_version_2.1.10:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.1.10"
test_version_2.2.6:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.2.6"
test_version_2.3.4:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.3.4"
test_version_2.4.2:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.4.2"
test_version_2.5.13:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.5.16"
- run: yarn test:compat
workflows:
version: 2
install-tests:
Expand All @@ -116,32 +81,7 @@ workflows:
- test:
requires:
- install
- test_version_2.0.8:
requires:
- install
- build_test
- test
- test_version_2.1.10:
requires:
- install
- build_test
- test
- test_version_2.2.6:
requires:
- install
- build_test
- test
- test_version_2.3.4:
requires:
- install
- build_test
- test
- test_version_2.4.2:
requires:
- install
- build_test
- test
- test_version_2.5.13:
- test_compat:
requires:
- install
- build_test
Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Hi! I’m really excited that you are interested in contributing to Vue Test Uti

You will need [Node.js](http://nodejs.org) **version 6+**

Vue Test Utils is a monorepo. It contains a root package.json for running scripts across the project. The code is inside separate packages in the `packages` directory. The project uses [lerna](https://lernajs.io/) to manage the workspaces.
Vue Test Utils is a monorepo. It contains a root package.json for running scripts across the project. The code is inside separate packages in the `packages` directory. The project uses [lerna](https://lerna.js.org/) to manage the workspaces.

After cloning the repo, run:

Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"javascript.validate.enable": false,
"flow.pathToFlow": "${workspaceFolder}/node_modules/.bin/flow"
}
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,45 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

<a name="1.0.0-beta.30"></a>
# [1.0.0-beta.30](https://github.com/vuejs/vue-test-utils/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2019-11-28)


### Bug Fixes

* **types:** allow `false` as a component stub value ([#1231](https://github.com/vuejs/vue-test-utils/issues/1231)) ([2a4c6ef](https://github.com/vuejs/vue-test-utils/commit/2a4c6ef))
* add $set scoped slot helper ([#1287](https://github.com/vuejs/vue-test-utils/issues/1287)) ([a9eea7b](https://github.com/vuejs/vue-test-utils/commit/a9eea7b)), closes [#1253](https://github.com/vuejs/vue-test-utils/issues/1253)
* polyfill Element.matches for IE < 11 ([#1230](https://github.com/vuejs/vue-test-utils/issues/1230)) ([5e04331](https://github.com/vuejs/vue-test-utils/commit/5e04331)), closes [#1223](https://github.com/vuejs/vue-test-utils/issues/1223)
* respect "hidden" attributes in isVisible() ([#1257](https://github.com/vuejs/vue-test-utils/issues/1257)) ([950763f](https://github.com/vuejs/vue-test-utils/commit/950763f))
* return promise from render and renderToString ([#1164](https://github.com/vuejs/vue-test-utils/issues/1164)) ([3c597d3](https://github.com/vuejs/vue-test-utils/commit/3c597d3))
* stub model option ([#1166](https://github.com/vuejs/vue-test-utils/issues/1166)) ([f81695b](https://github.com/vuejs/vue-test-utils/commit/f81695b))
* typo. ([#1312](https://github.com/vuejs/vue-test-utils/issues/1312)) ([90b2af7](https://github.com/vuejs/vue-test-utils/commit/90b2af7))


### Code Refactoring

* remove sync mode ([#1141](https://github.com/vuejs/vue-test-utils/issues/1141)) ([ef613de](https://github.com/vuejs/vue-test-utils/commit/ef613de))


### Features

* add correct render type ([#1143](https://github.com/vuejs/vue-test-utils/issues/1143)) ([8a9757c](https://github.com/vuejs/vue-test-utils/commit/8a9757c))
* **wrapper:** allow destroy() method to work with functional components ([#1188](https://github.com/vuejs/vue-test-utils/issues/1188)) ([f4ea3fd](https://github.com/vuejs/vue-test-utils/commit/f4ea3fd))
* add option to pretty print html components ([#1229](https://github.com/vuejs/vue-test-utils/issues/1229)) ([99336c4](https://github.com/vuejs/vue-test-utils/commit/99336c4))
* stop auto stubbing transition and transition-group ([#1127](https://github.com/vuejs/vue-test-utils/issues/1127)) ([85a972c](https://github.com/vuejs/vue-test-utils/commit/85a972c))


### BREAKING CHANGES

* html output will now be formatted
* render and renderToString are now async
* * Remove `sync` mode
* Remove TransitionStub
* Remove Transition




<a name="1.0.0-beta.29"></a>
# [1.0.0-beta.29](https://github.com/vuejs/vue-test-utils/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2019-02-02)

Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
}
},
serviceWorker: true,
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
theme: 'vue',
themeConfig: {
algolia: {
Expand Down
Binary file added docs/.vuepress/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ Vue Test Utils is the official unit testing utility library for Vue.js.
- [Testing Single-File Components with Jest](guides/testing-single-file-components-with-jest.md)
- [Testing Single-File Components with Mocha + webpack](guides/testing-single-file-components-with-mocha-webpack.md)
- [Testing Single-File Components with Karma](guides/testing-single-file-components-with-karma.md)
- [Testing in Node.js Without a Build Step](guides/usage-without-a-build-step-node.md)
- [Testing Asynchronous Behavior](guides/testing-async-components.md)
- [Using with TypeScript](guides/using-with-typescript.md)
- [Using with Vue Router](guides/using-with-vue-router.md)
- [Using with Vuex](guides/using-with-vuex.md)
- [Useful Libraries for Testing](guides/useful-libraries-for-testing.md)
- [API](api/)
- [mount](api/mount.md)
- [shallowMount](api/shallowMount.md)
Expand All @@ -32,7 +34,6 @@ Vue Test Utils is the official unit testing utility library for Vue.js.
- [listeners](api/options.md#listeners)
- [parentComponent](api/options.md#parentComponent)
- [provide](api/options.md#provide)
- [sync](api/options.md#sync)
- [other options](api/options.md#other-options)
- [Wrapper](api/wrapper/)
- [attributes](api/wrapper/attributes.md)
Expand Down Expand Up @@ -76,8 +77,6 @@ Vue Test Utils is the official unit testing utility library for Vue.js.
- [trigger](api/wrapper-array/trigger.md)
- [isVisible](api/wrapper-array/isVisible.md)
- [components](api/components/)
- [TransitionStub](api/components/TransitionStub.md)
- [TransitionGroupStub](api/components/TransitionGroupStub.md)
- [RouterLinkStub](api/components/RouterLinkStub.md)
- [Selectors](api/selectors.md)
- [createWrapper](api/createWrapper.md)
Expand Down
2 changes: 0 additions & 2 deletions docs/api/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
Vue Test Utils includes utility components you can use to stub components.

!!!include(docs/api/components/RouterLinkStub.md)!!!
!!!include(docs/api/components/TransitionStub.md)!!!
!!!include(docs/api/components/TransitionGroupStub.md)!!!
31 changes: 0 additions & 31 deletions docs/api/components/TransitionGroupStub.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/api/components/TransitionStub.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vue Test Utils includes a config object to defined options used by Vue Test Util
### `stubs`

- type: `{ [name: string]: Component | boolean | string }`
- default: `{ transition: TransitionStub, 'transition-group': TransitionGroupStub }`
- default: `{}`

The stub stored in `config.stubs` is used by default.
Stubs to use in components. These are overwritten by `stubs` passed in the mounting options.
Expand Down
2 changes: 2 additions & 0 deletions docs/api/createLocalVue.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Use it with `options.localVue`:

```js
import { createLocalVue, shallowMount } from '@vue/test-utils'
import MyPlugin from 'my-plugin'
import Foo from './Foo.vue'

const localVue = createLocalVue()
localVue.use(MyPlugin)
const wrapper = shallowMount(Foo, {
localVue,
mocks: { foo: true }
Expand Down
1 change: 0 additions & 1 deletion docs/api/createWrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

- `{vm|HTMLElement} node`
- `{Object} options`
- `{Boolean} sync`
- `{Boolean} attachedToDocument`

- **Returns:**
Expand Down
Loading