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

Relecture de development-tools.md #20

Merged
merged 3 commits into from
Sep 28, 2017
Merged

Conversation

MachinisteWeb
Copy link
Member

Le dernier avant Module

Signed-off-by: Bruno Lesieur <[email protected]>
@@ -83,47 +86,49 @@ test.before('Init Nuxt.js', async t => {
nuxt.listen(4000, 'localhost')
})

// Example of testing only generated html
// Exemple de test uniquement sur le HTML générés
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je mettrais "généré"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quelle idée sensée !

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

Signed-off-by: Bruno Lesieur <[email protected]>
Copy link

@forresst forresst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Des petites remarques ...


## End-to-End Testing
## Tests point par point (End-to-End)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je traduirais plutôt par "Tests de bout en bout"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'hésitais. Merci !


[Ava](https://github.com/avajs/ava) is a powerful JavaScript testing framework, mixed with [jsdom](https://github.com/tmpvar/jsdom), we can use them to do end-to-end testing easily.
[AVA](https://github.com/avajs/ava) est un framework JavaScript de test puissant, mixé avec [jsdom](https://github.com/tmpvar/jsdom), nous pouvons les utiliser pour écrire des tests point par point facilement.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

point par point => de bout en bout


```bash
npm install --save-dev babel-eslint eslint eslint-config-standard eslint-plugin-html eslint-plugin-promise eslint-plugin-standard
```

Then, you can configure ESLint via a `.eslintrc.js` file in your root project directory:
Puis, configurez ESLint via un fichier `.eslintrc.js` à la racine de votre projet :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cette ligne vide est en trop par rapport à l'original. Ton PR sur l'original ne corrige pas cette ligne.

Copy link
Member Author

@MachinisteWeb MachinisteWeb Sep 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déjà PR à l'originale, c'est maintenant en ordre
nuxt#263


```js
"scripts": {
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
}
```

You can now launch:
Vous pouvez alors lancer :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cette ligne vide est en trop par rapport à l'original. Ton PR sur l'original ne corrige pas cette ligne.

Copy link
Member Author

@MachinisteWeb MachinisteWeb Sep 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déjà PR à l'originale, c'est maintenant en ordre
nuxt#263

Signed-off-by: Bruno Lesieur <[email protected]>
@MachinisteWeb MachinisteWeb merged commit 3d97455 into working Sep 28, 2017
@MachinisteWeb MachinisteWeb deleted the development-tools branch September 28, 2017 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants