Skip to content

Commit

Permalink
docs(fr): french language added to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine ZANARDI committed Feb 11, 2023
2 parents bbd8183 + 85c0a87 commit f4165ca
Show file tree
Hide file tree
Showing 10 changed files with 588 additions and 588 deletions.
14 changes: 7 additions & 7 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('mounts a component', () => {

Notice that `mount` accepts a second parameter to define the component's state configuration.

**Example: mounting with component props and a Vue App plugin**
**Exemple : mounting with component props and a Vue App plugin**

```js
const wrapper = mount(Component, {
Expand Down Expand Up @@ -1886,7 +1886,7 @@ function shallowMount(Component, options?: MountingOptions): VueWrapper
**Signature:**
```ts
enableAutoUnmount(hook: Function));
enableAutoUnmount(hook: (callback: () => void) => void);
disableAutoUnmount(): void;
```
Expand Down Expand Up @@ -1941,7 +1941,7 @@ type GlobalMountOptions = {
Instead of configuring mounting options on a per test basis, you can configure them for your entire test suite. These will be used by default every time you `mount` a component. If desired, you can then override your defaults on a per test basis.
**Example:**
**Exemple :**
An example might be globally mocking the `$t` variable from vue-i18n and a component:
Expand All @@ -1954,11 +1954,11 @@ An example might be globally mocking the `$t` variable from vue-i18n and a compo
</template>

<script>
import MyComponent from '@/components/MyComponent'
import MonComposant from '@/components/MonComposant'

export default {
components: {
MyComponent
MonComposant
}
}
</script>
Expand All @@ -1970,12 +1970,12 @@ export default {
import { config, mount } from '@vue/test-utils'
import { defineComponent } from 'vue'

const MyComponent = defineComponent({
const MonComposant = defineComponent({
template: `<div>My component</div>`
})

config.global.stubs = {
MyComponent
MonComposant
}

config.global.mocks = {
Expand Down
Loading

0 comments on commit f4165ca

Please sign in to comment.